Re: [PATCH v1] pwm: dwc: Use size macro

From: Uwe Kleine-König

Date: Mon Jan 12 2026 - 03:00:00 EST


Hello,

On Mon, Jan 05, 2026 at 02:47:37PM +0530, Raag Jadav wrote:
> Use SZ_4K from size.h instead of hardcoding constant.
>
> Signed-off-by: Raag Jadav <raag.jadav@xxxxxxxxx>
> ---
> drivers/pwm/pwm-dwc.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c
> index b6c16139ce4a..86b72db58741 100644
> --- a/drivers/pwm/pwm-dwc.c
> +++ b/drivers/pwm/pwm-dwc.c
> @@ -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,
> };

I don't feel strong if this is an improvement or not. I applied it now
with s,size.h,linux/sizes.h, in the commit log.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature