Re: [PATCH v3 2/9] backlight: qcom-wled: Pass number of elements to read to read_u32_array

2021-12-22 Thread Lee Jones
On Mon, 15 Nov 2021, Marijn Suijten wrote: > of_property_read_u32_array takes the number of elements to read as last > argument. This does not always need to be 4 (sizeof(u32)) but should > instead be the size of the array in DT as read just above with > of_property_count_elems_of_size. > > To

[PATCH v3 2/9] backlight: qcom-wled: Pass number of elements to read to read_u32_array

2021-11-15 Thread Marijn Suijten
of_property_read_u32_array takes the number of elements to read as last argument. This does not always need to be 4 (sizeof(u32)) but should instead be the size of the array in DT as read just above with of_property_count_elems_of_size. To not make such an error go unnoticed again the driver now