]> 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)
commit64b13ad2922cb84954377d71cba246bcf50e91df
tree20882325a343bb3125cd21bd89fb2bae668a07a7
parent06f3dc7c8f27a7ef53ea4324dd314f9ab3cb4cda
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