Lines Matching +full:simple +full:- +full:mfd
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Simple MFD - I2C
10 * shared by all sub-devices. Children can use their parent's device structure
13 * Once the register map has been successfully initialised, any sub-devices
14 * represented by child nodes in Device Tree or via the MFD cells in this file
20 #include <linux/mfd/core.h>
25 #include "simple-mfd-i2c.h"
39 simple_mfd_data = device_get_match_data(&i2c->dev); in simple_mfd_i2c_probe()
42 if (!simple_mfd_data || !simple_mfd_data->regmap_config) in simple_mfd_i2c_probe()
45 regmap_config = simple_mfd_data->regmap_config; in simple_mfd_i2c_probe()
51 /* If no MFD cells are spedified, use register the DT child nodes instead */ in simple_mfd_i2c_probe()
52 if (!simple_mfd_data || !simple_mfd_data->mfd_cell) in simple_mfd_i2c_probe()
53 return devm_of_platform_populate(&i2c->dev); in simple_mfd_i2c_probe()
55 ret = devm_mfd_add_devices(&i2c->dev, PLATFORM_DEVID_AUTO, in simple_mfd_i2c_probe()
56 simple_mfd_data->mfd_cell, in simple_mfd_i2c_probe()
57 simple_mfd_data->mfd_cell_size, in simple_mfd_i2c_probe()
60 dev_err(&i2c->dev, "Failed to add child devices\n"); in simple_mfd_i2c_probe()
66 { .name = "sy7636a-regulator", },
67 { .name = "sy7636a-temperature", },
85 .name = "simple-mfd-i2c",
92 MODULE_DESCRIPTION("Simple MFD - I2C driver");