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

pwm: dwc: Use size macro

Use SZ_4K from linux/sizes.h instead of hardcoding constant.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260105091737.17280-1-raag.jadav@intel.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Raag Jadav and committed by
Uwe Kleine-König
02a140d3 aa12c7e7

+2 -1
+2 -1
drivers/pwm/pwm-dwc.c
··· 22 22 #include <linux/pci.h> 23 23 #include <linux/pm_runtime.h> 24 24 #include <linux/pwm.h> 25 + #include <linux/sizes.h> 25 26 26 27 #include "pwm-dwc.h" 27 28 28 29 /* Elkhart Lake */ 29 30 static const struct dwc_pwm_info ehl_pwm_info = { 30 31 .nr = 2, 31 - .size = 0x1000, 32 + .size = SZ_4K, 32 33 }; 33 34 34 35 static int dwc_pwm_init_one(struct device *dev, struct dwc_pwm_drvdata *ddata, unsigned int idx)