diff options
author | Alistair Francis <alistair@alistair23.me> | 2022-01-24 22:10:04 +1000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2022-02-08 09:27:22 +0000 |
commit | 5913eb45d036288babb67e97b210233537ef7b90 (patch) | |
tree | 0c262c58672af82ff81ff5409c860da311ab0938 /drivers/mfd | |
parent | bae5a4acef67db8870e33d9258223c9dcd64b5d1 (diff) |
mfd: simple-mfd-i2c: Enable support for the silergy,sy7636a
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/simple-mfd-i2c.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c index 51536691ad9d..f4c8fc3ee463 100644 --- a/drivers/mfd/simple-mfd-i2c.c +++ b/drivers/mfd/simple-mfd-i2c.c @@ -62,8 +62,19 @@ static int simple_mfd_i2c_probe(struct i2c_client *i2c) return ret; } +static const struct mfd_cell sy7636a_cells[] = { + { .name = "sy7636a-regulator", }, + { .name = "sy7636a-temperature", }, +}; + +static const struct simple_mfd_data silergy_sy7636a = { + .mfd_cell = sy7636a_cells, + .mfd_cell_size = ARRAY_SIZE(sy7636a_cells), +}; + static const struct of_device_id simple_mfd_i2c_of_match[] = { { .compatible = "kontron,sl28cpld" }, + { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, {} }; MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); |