diff options
author | Toshiaki Yamane <yamanetoshi@gmail.com> | 2012-07-25 12:18:12 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-13 19:25:48 -0700 |
commit | 6ebb56d974b2c0b31effd1bb2bde554582a9ebd8 (patch) | |
tree | 42762ef9bf5cbe45529bc9bb0e8da83f8b214dba /drivers/staging/panel | |
parent | c50037496113e2eb04cfeec86a5c2490786c3dd5 (diff) | |
download | linux-6ebb56d974b2c0b31effd1bb2bde554582a9ebd8.tar.gz linux-6ebb56d974b2c0b31effd1bb2bde554582a9ebd8.tar.bz2 linux-6ebb56d974b2c0b31effd1bb2bde554582a9ebd8.zip |
staging: panel: fix checkpatch warnings
Now checkpatch clean.
$ find drivers/staging/panel -name "*.[ch]"|xargs ./scripts/checkpatch.pl \
-f --terse --nosummary|cut -f3- -d":"|sort |uniq -c|sort -n
2 WARNING: Single statement macros should not use a do {} while (0) loop
Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r-- | drivers/staging/panel/panel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 39f9982c2708..d9fec5b3faac 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c @@ -137,8 +137,8 @@ #define r_ctr(x) (parport_read_control((x)->port)) #define r_dtr(x) (parport_read_data((x)->port)) #define r_str(x) (parport_read_status((x)->port)) -#define w_ctr(x, y) do { parport_write_control((x)->port, (y)); } while (0) -#define w_dtr(x, y) do { parport_write_data((x)->port, (y)); } while (0) +#define w_ctr(x, y) (parport_write_control((x)->port, (y))) +#define w_dtr(x, y) (parport_write_data((x)->port, (y))) /* this defines which bits are to be used and which ones to be ignored */ /* logical or of the output bits involved in the scan matrix */ |