styling: remove trailing whitespace from all modules

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-06-02 11:49:57 +01:00
parent 83c29cc330
commit fdcd36e1ae
8 changed files with 56 additions and 56 deletions

View File

@ -41,7 +41,7 @@ IICLcd::IICLcd (int bus, int lcdAddress) {
}
}
maa_result_t
maa_result_t
IICLcd::write (int row, int column, std::string msg) {
setCursor (row, column);
write (msg);

View File

@ -53,8 +53,8 @@ Jhd1313m1::Jhd1313m1 (int bus, int lcdAddress, int rgbAddress) : IICLcd(bus, lcd
clear ();
usleep(4500);
cmd (m_i2c_lcd_control, LCD_ENTRYMODESET |
LCD_ENTRYLEFT |
cmd (m_i2c_lcd_control, LCD_ENTRYMODESET |
LCD_ENTRYLEFT |
LCD_ENTRYSHIFTDECREMENT);
setReg (m_i2c_lcd_rgb, m_rgb_address, 0, 0);
@ -88,26 +88,26 @@ Jhd1313m1::write (std::string msg) {
return error;
}
maa_result_t
maa_result_t
Jhd1313m1::setCursor (int row, int column) {
maa_result_t error = MAA_SUCCESS;
int row_addr[] = { 0x80, 0xc0, 0x14, 0x54};
uint8_t offset = ((column % 16) + row_addr[row]);
uint8_t data[2] = { 0x80, offset };
uint8_t data[2] = { 0x80, offset };
error = maa_i2c_address (m_i2c_lcd_control, m_lcd_control_address);
error = maa_i2c_write (m_i2c_lcd_control, data, 2);
return error;
}
maa_result_t
maa_result_t
Jhd1313m1::clear () {
return cmd (m_i2c_lcd_control, LCD_CLEARDISPLAY);
}
maa_result_t
maa_result_t
Jhd1313m1::home () {
return cmd (m_i2c_lcd_control, LCD_RETURNHOME);
}
@ -117,7 +117,7 @@ Jhd1313m1::home () {
* private area
* **************
*/
maa_result_t
maa_result_t
Jhd1313m1::setReg (maa_i2c_context ctx, int deviceAdress, int addr, uint8_t value) {
maa_result_t error = MAA_SUCCESS;
@ -128,7 +128,7 @@ Jhd1313m1::setReg (maa_i2c_context ctx, int deviceAdress, int addr, uint8_t valu
return error;
}
maa_result_t
maa_result_t
Jhd1313m1::cmd (maa_i2c_context ctx, uint8_t value) {
maa_result_t error = MAA_SUCCESS;

View File

@ -78,7 +78,7 @@ Lcm1602::write (std::string msg) {
return error;
}
maa_result_t
maa_result_t
Lcm1602::setCursor (int row, int column) {
maa_result_t error = MAA_SUCCESS;
@ -88,12 +88,12 @@ Lcm1602::setCursor (int row, int column) {
return send (LCD_SETDDRAMADDR | offset, 0);
}
maa_result_t
maa_result_t
Lcm1602::clear () {
return send(LCD_CLEARDISPLAY, 0);
}
maa_result_t
maa_result_t
Lcm1602::home () {
return send(LCD_RETURNHOME, 0);
}
@ -103,7 +103,7 @@ Lcm1602::home () {
* private area
* **************
*/
maa_result_t
maa_result_t
Lcm1602::send (uint8_t value, int mode) {
maa_result_t ret = MAA_SUCCESS;
uint8_t h = value & 0xf0;