summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/fan_attr.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-05-09 14:41:00 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-05-19 20:17:10 +0200
commitfa578bf50e0b52fe0489480c0e311683cd60ffb6 (patch)
treee36091aef20680892830dff5a20e888086e3a3dd /drivers/acpi/fan_attr.c
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff)
downloadlinux-stable-fa578bf50e0b52fe0489480c0e311683cd60ffb6.tar.gz
linux-stable-fa578bf50e0b52fe0489480c0e311683cd60ffb6.tar.bz2
linux-stable-fa578bf50e0b52fe0489480c0e311683cd60ffb6.zip
ACPI: LPSS: Add pwm_lookup_table entry for second PWM on CHT/BSW devices
BSW PWM2 is used for backlight control for fixed (etched into the glass) touch controls on some models. Add an entry for the second PWM controller to bsw_pwm_lookup, so that drivers can use pwm_get() to get a reference to it. These touch-controls have specialized drivers which bind to different devices on different models, so the consumer-device-name in the lookup table entry is set to NULL, so that only con-id matching is used. The con-id is set to "pwm_soc_lpss_2" which describes the PWM controller rather than the usual approach of describing its function. The specialized (model specific) drivers which need access to the PWM controller know they need the "pwm_soc_lpss_2" con-id. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/fan_attr.c')
0 files changed, 0 insertions, 0 deletions