Hello,
On Sun, Mar 17, 2024 at 11:40:31AM +0100, Uwe Kleine-König wrote:
> After the necessary changes to the lowlevel drivers got in for v6.9-rc1
> here come some changes to the core to implement /dev/pwmchipX character
> devices.
>
> In my tests on an ARM STM32MP1 programming
river goes away.
I look forward to feedback,
Uwe
Uwe Kleine-König (8):
pwm: Ensure that pwm_chips are allocated using pwmchip_alloc()
pwm: Give some sysfs related variables and functions better names
pwm: Move contents of sysfs.c into core.c
pwm: Ensure a struct pwm has the same lifetime a
ough. This happens with the following commits.
Note this is a breaking change for all pwm drivers that don't use
pwmchip_alloc().
Reviewed-by: Gustavo A. R. Silva # for struct_size()
and __counted_by()
Signed-off-by: Uwe Kleine-König
---
drivers/pwm/core.c | 27 ++-
ough. This happens with the following commits.
Note this is a breaking change for all pwm drivers that don't use
pwmchip_alloc().
Reviewed-by: Gustavo A. R. Silva # for struct_size()
and __counted_by()
Signed-off-by: Uwe Kleine-König
---
drivers/pwm/core.c | 27 ++-
ze" in the
> devm_kzalloc() function.
>
> This way, the code is more readable and safer.
>
> Link:
> https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
> [1]
> Link: https://github.com/KSPP/linux/issues/160 [2]
&
ze" in the
> devm_kzalloc() function.
>
> This way, the code is more readable and more safer.
Unless you intend this non-English comparative: s/more safer/safer/
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König|
Industrial Linux Solutio
ough. This happens with the following commits.
Note this is a breaking change for all pwm drivers that don't use
pwmchip_alloc().
Reviewed-by: Gustavo A. R. Silva # for struct_size()
and __counted_by()
Signed-off-by: Uwe Kleine-König
---
drivers/pwm/core.c | 27 ++-
eof(*p_clk) * nums, GFP_KERNEL);
> -
> + p_clk = devm_kcalloc(dev, nums, sizeof(*p_clk), GFP_KERNEL);
> if (!p_clk)
> return;
Looks good,
Reviewed-by: Uwe Kleine-König
My first impulse was to ask why hisi_clk_register_pll doesn't return an
error i
ough. This happens with the following commits.
Note this is a breaking change for all pwm drivers that don't use
pwmchip_alloc().
Reviewed-by: Gustavo A. R. Silva # for struct_size()
and __counted_by()
Signed-off-by: Uwe Kleine-König
---
drivers/pwm/core.c | 27 ++-
ough. This happens with the following commits.
Note this is a breaking change for all pwm drivers that don't use
pwmchip_alloc().
Signed-off-by: Uwe Kleine-König
---
drivers/pwm/core.c | 26 ++
include/linux/pwm.h | 2 +-
2 files changed, 11 insertions(+), 17 del
10 matches
Mail list logo