diff options
| author | Andy Shevchenko <[email protected]> | 2022-11-17 11:08:01 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2022-11-22 14:36:27 +0000 |
| commit | 739f90fc48be7fb40f6dfe1212745c7fe56f2ab1 (patch) | |
| tree | a37d0cb5368b4d06f020766ebb7742fec5f0893e /drivers/pwm/pwm-lpss.c | |
| parent | pwm: Add a stub for devm_pwmchip_add() (diff) | |
| download | kernel-739f90fc48be7fb40f6dfe1212745c7fe56f2ab1.tar.gz kernel-739f90fc48be7fb40f6dfe1212745c7fe56f2ab1.zip | |
pwm: lpss: Rename MAX_PWMS --> LPSS_MAX_PWMS
The MAX_PWMS definition is already being used by the PWM core.
Using the same name in the certain driver confuses people
and potentially can clash with it.
Hence, rename it by adding LPSS prefix.
Reported-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpss.c')
| -rw-r--r-- | drivers/pwm/pwm-lpss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c index accdef5dd58e..b8739cd2c235 100644 --- a/drivers/pwm/pwm-lpss.c +++ b/drivers/pwm/pwm-lpss.c @@ -252,7 +252,7 @@ struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, void __iomem *base, int i, ret; u32 ctrl; - if (WARN_ON(info->npwm > MAX_PWMS)) + if (WARN_ON(info->npwm > LPSS_MAX_PWMS)) return ERR_PTR(-ENODEV); lpwm = devm_kzalloc(dev, sizeof(*lpwm), GFP_KERNEL); |
