]> git.baikalelectronics.ru Git - kernel.git/commit
video: ssd1307fb: Do not hard code active-low reset sequence
authorMichal Vokáč <michal.vokac@ysoft.com>
Mon, 8 Oct 2018 10:57:37 +0000 (12:57 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 8 Oct 2018 10:57:37 +0000 (12:57 +0200)
commitd0fa64eb1a7ba29f3872552935c58af529f83169
tree0434aaeff7a455f14b00780432b6627ff8332172
parent8775ab7cdd96ced06610c3c120bac541077f7fef
video: ssd1307fb: Do not hard code active-low reset sequence

The SSD130x OLED display reset signal is active low. Now the reset
sequence is implemented in such a way that users are forced to
define reset-gpios as GPIO_ACTIVE_HIGH in DT to make the reset work.

Do not hard code the active-low sequence into the driver but instead
allow the user to specify the gpio as GPIO_ACTIVE_LOW to reflect
the real world.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/ssd1307fb.c