[PATCH 00/12] w1: Constify 'struct bin_attribute'

From: Thomas Weißschuh
Date: Wed Dec 11 2024 - 12:50:46 EST


The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (12):
w1: Constify 'struct bin_attribute'
w1: ds2406: Constify 'struct bin_attribute'
w1: ds2408: Constify 'struct bin_attribute'
w1: ds2413: Constify 'struct bin_attribute'
w1: ds2430: Constify 'struct bin_attribute'
w1: ds2431: Constify 'struct bin_attribute'
w1: ds2433: Constify 'struct bin_attribute'
w1: ds2438: Constify 'struct bin_attribute'
w1: ds2780: Constify 'struct bin_attribute'
w1: ds2781: Constify 'struct bin_attribute'
w1: ds2805: Constify 'struct bin_attribute'
w1: ds28e04: Constify 'struct bin_attribute'

drivers/w1/slaves/w1_ds2406.c | 10 +++++-----
drivers/w1/slaves/w1_ds2408.c | 42 +++++++++++++++++++++---------------------
drivers/w1/slaves/w1_ds2413.c | 14 +++++++-------
drivers/w1/slaves/w1_ds2430.c | 10 +++++-----
drivers/w1/slaves/w1_ds2431.c | 10 +++++-----
drivers/w1/slaves/w1_ds2433.c | 24 ++++++++++++------------
drivers/w1/slaves/w1_ds2438.c | 34 +++++++++++++++++-----------------
drivers/w1/slaves/w1_ds2780.c | 8 ++++----
drivers/w1/slaves/w1_ds2781.c | 8 ++++----
drivers/w1/slaves/w1_ds2805.c | 10 +++++-----
drivers/w1/slaves/w1_ds28e04.c | 18 +++++++++---------
drivers/w1/w1.c | 12 ++++++------
12 files changed, 100 insertions(+), 100 deletions(-)
---
base-commit: f92f4749861b06fed908d336b4dee1326003291b
change-id: 20241211-sysfs-const-bin_attr-w1-737adb3f39e0

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>