Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pwm: raspberrypi-poe: Make use of pwmchip_parent() accessor

struct pwm_chip::dev is about to change. To not have to touch this
driver in the same commit as struct pwm_chip::dev, use the accessor
function provided for exactly this purpose.

Link: https://lore.kernel.org/r/6758bcddb150f2c4353469937f1a68ecb87465ed.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

+1 -1
+1 -1
drivers/pwm/pwm-raspberrypi-poe.c
··· 122 122 ret = raspberrypi_pwm_set_property(rpipwm->firmware, RPI_PWM_CUR_DUTY_REG, 123 123 duty_cycle); 124 124 if (ret) { 125 - dev_err(chip->dev, "Failed to set duty cycle: %pe\n", 125 + dev_err(pwmchip_parent(chip), "Failed to set duty cycle: %pe\n", 126 126 ERR_PTR(ret)); 127 127 return ret; 128 128 }