From d58e4acf178f338a69ce26f216d8ba3d97c40a97 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 May 2016 08:48:32 -0600 Subject: [PATCH] Remove whitespace from the end of lines --- drivers/lcd/pcf8574_lcd_backpack.c | 26 ++++++++++----------- drivers/lcd/pcf8574_lcd_backpack_readme.txt | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/lcd/pcf8574_lcd_backpack.c b/drivers/lcd/pcf8574_lcd_backpack.c index 22fd29bb96..09ccdfcd2b 100644 --- a/drivers/lcd/pcf8574_lcd_backpack.c +++ b/drivers/lcd/pcf8574_lcd_backpack.c @@ -567,24 +567,24 @@ static void lcd_init(FAR struct pcf8574_lcd_dev_s *priv) latch_nybble(priv, 0x20>>4, false); /* Function set: DL=0;Interface is 4 bits, N=1 (2 Lines), F=0 (5x8 dots font) */ - + lcd_putcmd(priv, 0x28); /* Display Off: D=0 (Display off), C=0 (Cursor Off), B=0 (Blinking Off) */ - + lcd_putcmd(priv, 0x08); /* Display Clear */ - + lcd_putcmd(priv, CMD_CLEAR); up_udelay(DELAY_US_HOMECLEAR); /* clear needs extra time */ /* Entry Mode Set: I/D=1 (Increment), S=0 (No shift) */ - + lcd_putcmd(priv, 0x06); /* Display On, Cursor Off */ - + lcd_putcmd(priv, 0x0C); } @@ -610,7 +610,7 @@ static void lcd_create_char(FAR struct pcf8574_lcd_dev_s *priv, { int nIdx; uint8_t addr; - + (void)lcd_read_busy_addr(priv, &addr); lcd_putcmd(priv, CMD_SET_CGADDR | (idxchar << 3)); /* set CGRAM address */ @@ -737,7 +737,7 @@ static void lcd_codec_action(FAR struct pcf8574_lcd_dev_s *priv, { if (count <= 0) /* silly case */ break; - + else { uint8_t row; @@ -817,12 +817,12 @@ static void lcd_codec_action(FAR struct pcf8574_lcd_dev_s *priv, { end = priv->cfg.cols; } - + for (nIdx = col; nIdx < end; ++nIdx) { lcd_putdata(priv, ' '); } - + lcd_set_curpos(priv, row, col); } break; @@ -841,12 +841,12 @@ static void lcd_codec_action(FAR struct pcf8574_lcd_dev_s *priv, uint8_t nIdx; lcd_get_curpos(priv, &row, &col); - + for (nIdx = col; nIdx < priv->cfg.cols; ++nIdx) { lcd_putdata(priv, ' '); } - + lcd_set_curpos(priv, row, col); } break; @@ -932,7 +932,7 @@ static void lcd_codec_action(FAR struct pcf8574_lcd_dev_s *priv, lcd_set_curpos(priv, row, 0); } break; - + case SLCDCODE_END: /* Cursor end */ { uint8_t row; @@ -1356,7 +1356,7 @@ int pcf8574_lcd_backpack_register(FAR const char *devpath, { FAR struct pcf8574_lcd_dev_s *priv; int ret; - + /* Sanity check on geometry */ if (cfg->rows < 1 || cfg->rows > 4) diff --git a/drivers/lcd/pcf8574_lcd_backpack_readme.txt b/drivers/lcd/pcf8574_lcd_backpack_readme.txt index c7d2775d11..d5573ea377 100644 --- a/drivers/lcd/pcf8574_lcd_backpack_readme.txt +++ b/drivers/lcd/pcf8574_lcd_backpack_readme.txt @@ -91,7 +91,7 @@ E.g.: #include #include "pcf8574_lcd_backpack.h" - + #define MJKDZ_I2C_PORTNO 1 #define MJKDZ_DEVICE_NAME "/dev/lcd0" @@ -242,4 +242,4 @@ Troubleshooting range of voltages at this pin is very narrow, and outside that range there will be nothing visible on the display, so most of the turn range of the pot is non-useful. Much of human life has been - wasted in the rediscovery of this farcically idiotic + wasted in the rediscovery of this farcically idiotic