Home
last modified time | relevance | path

Searched hist:"565 e3afaefee3cfe13783c2b1e8d5ceb09023beb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/soundwire/
H A Dsysfs_slave.cdiff 565e3afaefee3cfe13783c2b1e8d5ceb09023beb Sun Jan 17 16:16:22 CST 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> soundwire: sysfs: Constify static struct attribute_group

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.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210117221622.34315-1-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>