Skip to content

Commit e55eb69

Browse files
author
Wolfram Sang
committed
Merge tag 'at24-updates-for-v6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into i2c/for-mergewindow
at24 updates for v6.15-rc1 - add two new compatible entries to the DT binding document - drop of_match_ptr() and ACPI_PTR() macros
2 parents fbc54ae + f25f405 commit e55eb69

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Documentation/devicetree/bindings/eeprom/at24.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,13 @@ properties:
130130
- const: giantec,gt24c32a
131131
- const: atmel,24c32
132132
- items:
133-
- const: onnn,n24s64b
133+
- enum:
134+
- onnn,n24s64b
135+
- puya,p24c64f
134136
- const: atmel,24c64
135137
- items:
136138
- enum:
139+
- giantec,gt24p128e
137140
- giantec,gt24p128f
138141
- renesas,r1ex24128
139142
- samsung,s524ad0xd1

drivers/misc/eeprom/at24.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <linux/module.h>
1919
#include <linux/mutex.h>
2020
#include <linux/nvmem-provider.h>
21-
#include <linux/of.h>
22-
#include <linux/of_device.h>
2321
#include <linux/pm_runtime.h>
2422
#include <linux/property.h>
2523
#include <linux/regmap.h>
@@ -252,7 +250,7 @@ static const struct i2c_device_id at24_ids[] = {
252250
};
253251
MODULE_DEVICE_TABLE(i2c, at24_ids);
254252

255-
static const struct of_device_id __maybe_unused at24_of_match[] = {
253+
static const struct of_device_id at24_of_match[] = {
256254
{ .compatible = "atmel,24c00", .data = &at24_data_24c00 },
257255
{ .compatible = "atmel,24c01", .data = &at24_data_24c01 },
258256
{ .compatible = "atmel,24cs01", .data = &at24_data_24cs01 },
@@ -286,7 +284,7 @@ static const struct of_device_id __maybe_unused at24_of_match[] = {
286284
};
287285
MODULE_DEVICE_TABLE(of, at24_of_match);
288286

289-
static const struct acpi_device_id __maybe_unused at24_acpi_ids[] = {
287+
static const struct acpi_device_id at24_acpi_ids[] = {
290288
{ "INT3499", (kernel_ulong_t)&at24_data_INT3499 },
291289
{ "TPF0001", (kernel_ulong_t)&at24_data_24c1024 },
292290
{ /* END OF LIST */ }
@@ -848,8 +846,8 @@ static struct i2c_driver at24_driver = {
848846
.driver = {
849847
.name = "at24",
850848
.pm = &at24_pm_ops,
851-
.of_match_table = of_match_ptr(at24_of_match),
852-
.acpi_match_table = ACPI_PTR(at24_acpi_ids),
849+
.of_match_table = at24_of_match,
850+
.acpi_match_table = at24_acpi_ids,
853851
},
854852
.probe = at24_probe,
855853
.remove = at24_remove,

0 commit comments

Comments
 (0)