[PATCH V2] soundwire: sysfs: Constify static struct attribute_group

Vinod Koul vkoul at kernel.org
Tue Jan 19 15:53:09 CET 2021


On 17-01-21, 23:16, Rikard Falkeborn wrote:
> The only place sdw_slave_dev_attr_group is used is when its address is
> passed to devm_device_add_group() which takes a pointer to const struct
> attribute_group. Make it const to allow the compiler to put it in
> read-only memory. This makes all attribute_group structs in the file
> const. Done with the help of Coccinelle.

Applied, thanks

-- 
~Vinod


More information about the Alsa-devel mailing list