[PATCH 3/7] w1: ds2433: rename W1_EEPROM_DS2433

From: marc . ferland
Date: Fri Nov 17 2023 - 14:30:14 EST


From: Marc Ferland <marc.ferland@xxxxxxxxxxxx>

Rename the W1_EEPROM_DS2433 define to W1_F23_EEPROM_DS2433 to make it
clear it is associated with family 0x23.

This is ground work for supporting both the ds2433 and the ds28ec20.

Signed-off-by: Marc Ferland <marc.ferland@xxxxxxxxxxxx>
---
drivers/w1/slaves/w1_ds2433.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/w1/slaves/w1_ds2433.c b/drivers/w1/slaves/w1_ds2433.c
index e1e45ea1bfa4..6b04fdef2923 100644
--- a/drivers/w1/slaves/w1_ds2433.c
+++ b/drivers/w1/slaves/w1_ds2433.c
@@ -22,7 +22,7 @@

#include <linux/w1.h>

-#define W1_EEPROM_DS2433 0x23
+#define W1_F23_EEPROM_DS2433 0x23

#define W1_EEPROM_SIZE 512
#define W1_PAGE_COUNT 16
@@ -296,7 +296,7 @@ static const struct w1_family_ops w1_f23_fops = {
};

static struct w1_family w1_family_23 = {
- .fid = W1_EEPROM_DS2433,
+ .fid = W1_F23_EEPROM_DS2433,
.fops = &w1_f23_fops,
};

@@ -322,4 +322,4 @@ module_exit(w1_ds2433_exit);
MODULE_AUTHOR("Ben Gardner <bgardner@xxxxxxxxxx>");
MODULE_DESCRIPTION("w1 family 23 driver for DS2433, 4kb EEPROM");
MODULE_LICENSE("GPL");
-MODULE_ALIAS("w1-family-" __stringify(W1_EEPROM_DS2433));
+MODULE_ALIAS("w1-family-" __stringify(W1_F23_EEPROM_DS2433));
--
2.34.1