<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/fbdev/ssd1307fb.c, branch linux-5.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-09-08T11:33:03Z</updated>
<entry>
<title>video: fbdev: ssd1307fb: Added support to Column offset</title>
<updated>2020-09-08T11:33:03Z</updated>
<author>
<name>Rodrigo Alencar</name>
</author>
<published>2020-07-24T20:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ec2832e9cdd7b3ad58e39217775e5b10290e62f'/>
<id>urn:sha1:9ec2832e9cdd7b3ad58e39217775e5b10290e62f</id>
<content type='text'>
This patch provides support for displays like VGM128064B0W10,
which requires a column offset of 2, i.e., its segments starts
in SEG2 and ends in SEG129.

Signed-off-by: Rodrigo Alencar &lt;455.rodrigo.alencar@gmail.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1595622138-3965-1-git-send-email-455.rodrigo.alencar@gmail.com
</content>
</entry>
<entry>
<title>pwm: Convert period and duty cycle to u64</title>
<updated>2020-06-17T18:42:11Z</updated>
<author>
<name>Guru Das Srinagesh</name>
</author>
<published>2020-06-02T22:31:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9d887dc1c60ed67f2271d66560cdcf864c4a578'/>
<id>urn:sha1:a9d887dc1c60ed67f2271d66560cdcf864c4a578</id>
<content type='text'>
Because period and duty cycle are defined as ints with units of
nanoseconds, the maximum time duration that can be set is limited to
~2.147 seconds. Change their definitions to u64 in the structs of the
PWM framework so that higher durations may be set.

Also use the right format specifiers in debug prints in both core.c,
pwm-stm32-lp.c as well as video/fbdev/ssd1307fb.c.

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Guru Das Srinagesh &lt;gurus@codeaurora.org&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>video: ssd1307fb: Remove redundant forward declaration</title>
<updated>2020-04-17T13:50:00Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-24T17:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=304d63d4d89dc2c24bdfc7730355ca38f589f91b'/>
<id>urn:sha1:304d63d4d89dc2c24bdfc7730355ca38f589f91b</id>
<content type='text'>
There is no need to have forward declaration of struct ssd1307fb_par.
Drop it for good.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-5-andriy.shevchenko@linux.intel.com
</content>
</entry>
<entry>
<title>video: ssd1307fb: Convert to atomic PWM API</title>
<updated>2020-04-17T13:49:59Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-24T17:05:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=479382360da64e5d31509c72a07e4623ed249db0'/>
<id>urn:sha1:479382360da64e5d31509c72a07e4623ed249db0</id>
<content type='text'>
Use the atomic API wherever appropriate and get rid of pwm_apply_args()
call (the reference period and polarity are now explicitly set when
calling pwm_apply_state()).

We also make use of the pwm_set_relative_duty_cycle() helper to ease
relative to absolute duty_cycle conversion.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-4-andriy.shevchenko@linux.intel.com
</content>
</entry>
<entry>
<title>video: ssd1307fb: Make use of device properties</title>
<updated>2020-04-17T13:49:58Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-24T17:05:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72915994e028912add23afce7f16ebd06d2dc73e'/>
<id>urn:sha1:72915994e028912add23afce7f16ebd06d2dc73e</id>
<content type='text'>
Device property API allows to gather device resources from different sources,
such as ACPI. Convert the drivers to unleash the power of device property API.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-3-andriy.shevchenko@linux.intel.com
</content>
</entry>
<entry>
<title>video: ssd1307fb: Introduce temporary variable to increase readability</title>
<updated>2020-04-17T13:49:57Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-24T17:05:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa64c6badea4445895362fca61c7743ca7cd0bde'/>
<id>urn:sha1:fa64c6badea4445895362fca61c7743ca7cd0bde</id>
<content type='text'>
Introduce temporary variable to increase readability of the code.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
[b.zolnierkie: fix lines over 80 characters]
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-2-andriy.shevchenko@linux.intel.com
</content>
</entry>
<entry>
<title>video: ssd1307fb: Convert driver to use -&gt;probe_new()</title>
<updated>2020-04-17T13:49:56Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-24T17:05:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=59d961c5972f8dd064277b41be1061e41827c726'/>
<id>urn:sha1:59d961c5972f8dd064277b41be1061e41827c726</id>
<content type='text'>
Use the -&gt;probe_new() callback.

The driver does not use const struct i2c_device_id * argument,
so convert it to utilise the simplified I²C driver registration.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-1-andriy.shevchenko@linux.intel.com
</content>
</entry>
<entry>
<title>video: Replace zero-length array with flexible-array member</title>
<updated>2020-03-02T15:32:17Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2020-02-21T16:00:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=451787d3e2ac3a25abae91792b7154ee533b65c6'/>
<id>urn:sha1:451787d3e2ac3a25abae91792b7154ee533b65c6</id>
<content type='text'>
The current codebase makes use of the zero-length array language
extension to the C90 standard, but the preferred mechanism to declare
variable-length types such as these ones is a flexible array member[1][2],
introduced in C99:

struct foo {
        int stuff;
        struct boo array[];
};

By making use of the mechanism above, we will get a compiler warning
in case the flexible array does not occur last in the structure, which
will help us prevent some kind of undefined behavior bugs from being
inadvertently introduced[3] to the codebase from now on.

Also, notice that, dynamic memory allocations won't be affected by
this change:

"Flexible array members have incomplete type, and so the sizeof operator
may not be applied. As a quirk of the original implementation of
zero-length arrays, sizeof evaluates to zero."[1]

This issue was found with the help of Coccinelle.

[1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
[2] https://github.com/KSPP/linux/issues/21
[3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour")

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200221160005.GA13552@embeddedor
</content>
</entry>
<entry>
<title>video: ssd1307fb: add the missed regulator_disable</title>
<updated>2020-01-15T16:31:42Z</updated>
<author>
<name>Chuhong Yuan</name>
</author>
<published>2019-11-18T11:41:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac0c2558161d7bf273fcf980d291eb338f47787b'/>
<id>urn:sha1:ac0c2558161d7bf273fcf980d291eb338f47787b</id>
<content type='text'>
The driver forgets to disable the regulator in remove like what is done
in probe failure.
Add the missed call to fix it.

Signed-off-by: Chuhong Yuan &lt;hslester96@gmail.com&gt;
Tested-by: Michal Vokáč &lt;michal.vokac@ysoft.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20191118114150.25724-1-hslester96@gmail.com
</content>
</entry>
<entry>
<title>video: constify fb ops across all drivers</title>
<updated>2019-12-05T08:57:53Z</updated>
<author>
<name>Jani Nikula</name>
</author>
<published>2019-12-03T16:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a48ac339398f21282985bff16552447d41dcfb2'/>
<id>urn:sha1:8a48ac339398f21282985bff16552447d41dcfb2</id>
<content type='text'>
Now that the fbops member of struct fb_info is const, we can start
making the ops const as well.

This does not cover all drivers; some actually modify the fbops struct,
for example to adjust for different configurations, and others do more
involved things that I'd rather not touch in practically obsolete
drivers. Mostly this is the low hanging fruit where we can add "const"
and be done with it.

v3:
- un-constify atyfb, mb862xx, nvidia and uvesabf (0day)

v2:
- fix typo (Christophe de Dinechin)
- use "static const" instead of "const static" in mx3fb.c
- also constify smscufx.c

Cc: linux-fbdev@vger.kernel.org
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/ce67f14435f3af498f2e8bf35ce4be11f7504132.1575390740.git.jani.nikula@intel.com
</content>
</entry>
</feed>
