linux-stable/drivers/gpu/drm/solomon
Javier Martinez Canillas 51affef35b
drm/ssd130x: Silence a dubious: x & !y warning
The sparse tool complains with the following warning:

$ make M=drivers/gpu/drm/solomon/ C=2
  CC [M]  drivers/gpu/drm/solomon/ssd130x.o
  CHECK   drivers/gpu/drm/solomon/ssd130x.c
drivers/gpu/drm/solomon/ssd130x.c:363:21: warning: dubious: x & !y

This seems to be a false positive in my opinion but still we can silence
the tool while making the code easier to read. Let's also add a comment,
to explain why the "com_seq" logical not is used rather than its value.

Reported-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230121190930.2804224-1-javierm@redhat.com
2023-01-24 11:02:33 +01:00
..
Kconfig drm/solomon: Add SSD130x OLED displays SPI support 2022-04-20 18:48:17 +02:00
Makefile drm/solomon: Add SSD130x OLED displays SPI support 2022-04-20 18:48:17 +02:00
ssd130x-i2c.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
ssd130x-spi.c drm/ssd130x: Use new regmap bulk write support to drop custom bus 2022-07-18 10:38:42 +02:00
ssd130x.c drm/ssd130x: Silence a dubious: x & !y warning 2023-01-24 11:02:33 +01:00
ssd130x.h drm/ssd130x: Replace simple display helpers with the atomic helpers 2022-09-08 10:46:19 +02:00