]> git.baikalelectronics.ru Git - kernel.git/commit
video: ssd1307fb: Convert to atomic PWM API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Mar 2020 17:05:31 +0000 (19:05 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 17 Apr 2020 13:49:59 +0000 (15:49 +0200)
commiteaa13f4a72d7d6f3f009234e9336d20ac406468f
tree20882325a343bb3125cd21bd89fb2bae668a07a7
parentc550cc2f2eebb79cfde669d3ee7bb26d76c60a9a
video: ssd1307fb: Convert to atomic PWM API

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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200324170532.44384-4-andriy.shevchenko@linux.intel.com
drivers/video/fbdev/ssd1307fb.c