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>master
parent
aa12c7e703
commit
02a140d331
|
|
@ -22,13 +22,14 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/pwm.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#include "pwm-dwc.h"
|
||||
|
||||
/* Elkhart Lake */
|
||||
static const struct dwc_pwm_info ehl_pwm_info = {
|
||||
.nr = 2,
|
||||
.size = 0x1000,
|
||||
.size = SZ_4K,
|
||||
};
|
||||
|
||||
static int dwc_pwm_init_one(struct device *dev, struct dwc_pwm_drvdata *ddata, unsigned int idx)
|
||||
|
|
|
|||
Loading…
Reference in New Issue