OSDN Git Service

pwm: lpss: Add get_state callback
authorHans de Goede <hdegoede@redhat.com>
Fri, 12 Oct 2018 10:12:29 +0000 (12:12 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 12 Oct 2018 10:33:02 +0000 (12:33 +0200)
commit280fec4c3ad6701567d7d840506b9b1463a48b71
treea0bdc970d208ffbb84b420fcc2b1a055b336819d
parent42885551cedb45961879d2fc3dc3c4dc545cc23e
pwm: lpss: Add get_state callback

Add a get_state callback so that the initial state correctly reflects
the actual hardware state.

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss.c