<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/fbdev/ssd1307fb.c, branch linux-4.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-03-28T14:34:28Z</updated>
<entry>
<title>video: ssd1307fb: Improve a size determination in ssd1307fb_probe()</title>
<updated>2018-03-28T14:34:28Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2018-03-28T14:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d2ad0a1b7f0bcc65da57152b98a08633b410e63'/>
<id>urn:sha1:3d2ad0a1b7f0bcc65da57152b98a08633b410e63</id>
<content type='text'>
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Bastian Stender &lt;bst@pengutronix.de&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev/ssd1307fb: fix optional VBAT support</title>
<updated>2017-04-07T15:28:23Z</updated>
<author>
<name>Bastian Stender</name>
</author>
<published>2017-04-07T15:28:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cfc5b2b551d8c089079e754525839101b1b43624'/>
<id>urn:sha1:cfc5b2b551d8c089079e754525839101b1b43624</id>
<content type='text'>
SSD1306 needs VBAT when it is wired in charge pump configuration only.
Other controllers of the SSD1307 family do not need it at all. This was
introduced by commit ba14301e0356 ("fbdev/ssd1307fb: add support to
enable VBAT").

Without VBAT configuration the driver now fails with:

	failed to get VBAT regulator: -19

This is caused by misinterpretation of devm_regulator_get_optional
which "returns a struct regulator corresponding to the regulator
producer or IS_ERR() condition".

Handle -ENODEV without bailing out and making VBAT support really
optional.

Signed-off-by: Bastian Stender &lt;bst@pengutronix.de&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: Roger Quadros &lt;rogerq@ti.com&gt;
[b.zolnierkie: minor fixups]
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: include linux/gpio/consumer.h</title>
<updated>2017-02-20T12:51:07Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2017-02-20T12:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=580203f10e0e060c35a526c3c67d6c1a44109664'/>
<id>urn:sha1:580203f10e0e060c35a526c3c67d6c1a44109664</id>
<content type='text'>
Changing this driver to the gpiod API requires the use of the
new-style header, depending on the configuration:

drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe':
drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration]
drivers/video/fbdev/ssd1307fb.c:570:11: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)

Fixes: 72db33355c14 ("fbdev: ssd1307fb: Start to use gpiod API for reset gpio")
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev/ssd1307fb: clear screen in probe</title>
<updated>2017-02-08T15:44:00Z</updated>
<author>
<name>Tomi Valkeinen</name>
</author>
<published>2017-02-08T15:44:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6e376822ee9e06c5fa81424c8cf9218abfabefff'/>
<id>urn:sha1:6e376822ee9e06c5fa81424c8cf9218abfabefff</id>
<content type='text'>
SSD1306 does not clear the panel's framebuffer automatically, even if a
HW reset happens, so we need to do that at probe time before enabling
the panel.

Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Cc: Benoît Cousson &lt;bcousson@baylibre.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev/ssd1307fb: add support to enable VBAT</title>
<updated>2017-02-08T15:43:59Z</updated>
<author>
<name>Tomi Valkeinen</name>
</author>
<published>2017-02-08T15:43:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba14301e0356c99803e07db60e129a2ca9e50ff0'/>
<id>urn:sha1:ba14301e0356c99803e07db60e129a2ca9e50ff0</id>
<content type='text'>
SSD1306 needs VBAT when it is wired in charge pump configuration. This
patch adds support to the driver to enable VBAT regulator at init time.

Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Cc: Benoît Cousson &lt;bcousson@baylibre.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Reviewed-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Make reset gpio devicetree property optional</title>
<updated>2017-02-08T15:43:59Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2017-02-08T15:43:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fdde1a8148d81617582c138cd1fbdc4594d4c941'/>
<id>urn:sha1:fdde1a8148d81617582c138cd1fbdc4594d4c941</id>
<content type='text'>
Make reset gpio devicetree property optional. Depending on the board
designing there may not be a dedicated gpio for resetting the
display. Without a proper reset there may be some junk in the display
memory at probe time, so in such a case the display memory is cleared
before turning it on. The devicetree binding document is also updated.

Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Cc: Benoît Cousson &lt;bcousson@baylibre.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Start to use gpiod API for reset gpio</title>
<updated>2017-02-08T15:43:59Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2017-02-08T15:43:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72db33355c1431fefcabb06c9c25705e8226eed5'/>
<id>urn:sha1:72db33355c1431fefcabb06c9c25705e8226eed5</id>
<content type='text'>
Start to use gpiod API for reset gpio.

Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Cc: Benoît Cousson &lt;bcousson@baylibre.com&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: fix a possible NULL dereference</title>
<updated>2016-09-27T08:41:30Z</updated>
<author>
<name>LABBE Corentin</name>
</author>
<published>2016-08-16T09:27:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8ed9e87e6016433b8d178728a5391ea68101bca'/>
<id>urn:sha1:d8ed9e87e6016433b8d178728a5391ea68101bca</id>
<content type='text'>
of_match_device could return NULL, and so cause a NULL pointer
dereference later.

For fixing this problem, we use of_device_get_match_data(), this will
simplify the code a little by using a standard function for
getting the match data.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: constify the device_info pointer</title>
<updated>2016-09-27T08:41:30Z</updated>
<author>
<name>LABBE Corentin</name>
</author>
<published>2016-08-16T09:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=60169c3fb78e5cd61cb1343e7f3c5edb72702a04'/>
<id>urn:sha1:60169c3fb78e5cd61cb1343e7f3c5edb72702a04</id>
<content type='text'>
of_match_device return const data, so instead of casting its return value
this patch constify the device_info pointer.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>video: fbdev: constify fb_fix_screeninfo and fb_var_screeninfo structures</title>
<updated>2016-09-27T08:16:35Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2016-09-11T15:17:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca9384c5911199257cbdf48f1bc3e3986de611a2'/>
<id>urn:sha1:ca9384c5911199257cbdf48f1bc3e3986de611a2</id>
<content type='text'>
These structures are only used to copy into other structures, so declare
them as const.

The semantic patch that makes this change in the fb_fix_screeninfo case is
as follows (http://coccinelle.lip6.fr/).  The fb_var_screeninfo case is
analogous.

// &lt;smpl&gt;
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct fb_fix_screeninfo i@p = { ... };

@ok@
identifier r.i;
expression e;
position p;
@@
e = i@p

@bad@
position p != {r.p,ok.p};
identifier r.i;
struct fb_fix_screeninfo e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct fb_fix_screeninfo i = { ... };
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
</feed>
