sy8824x.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) sy8824x.c (77e29598ca3fc20314f1acec35ada9706b3ea16b)
1// SPDX-License-Identifier: GPL-2.0
2//
3// SY8824C/SY8824E regulator driver
4//
5// Copyright (C) 2019 Synaptics Incorporated
6//
7// Author: Jisheng Zhang <jszhang@kernel.org>
8

--- 98 unchanged lines hidden (view full) ---

107 return PTR_ERR_OR_ZERO(rdev);
108}
109
110static const struct regmap_config sy8824_regmap_config = {
111 .reg_bits = 8,
112 .val_bits = 8,
113};
114
1// SPDX-License-Identifier: GPL-2.0
2//
3// SY8824C/SY8824E regulator driver
4//
5// Copyright (C) 2019 Synaptics Incorporated
6//
7// Author: Jisheng Zhang <jszhang@kernel.org>
8

--- 98 unchanged lines hidden (view full) ---

107 return PTR_ERR_OR_ZERO(rdev);
108}
109
110static const struct regmap_config sy8824_regmap_config = {
111 .reg_bits = 8,
112 .val_bits = 8,
113};
114
115static int sy8824_i2c_probe(struct i2c_client *client,
116 const struct i2c_device_id *id)
115static int sy8824_i2c_probe(struct i2c_client *client)
117{
118 struct device *dev = &client->dev;
119 struct device_node *np = dev->of_node;
120 struct sy8824_device_info *di;
121 struct regulator_config config = { };
122 struct regmap *regmap;
123 int ret;
124

--- 92 unchanged lines hidden (view full) ---

217};
218MODULE_DEVICE_TABLE(i2c, sy8824_id);
219
220static struct i2c_driver sy8824_regulator_driver = {
221 .driver = {
222 .name = "sy8824-regulator",
223 .of_match_table = of_match_ptr(sy8824_dt_ids),
224 },
116{
117 struct device *dev = &client->dev;
118 struct device_node *np = dev->of_node;
119 struct sy8824_device_info *di;
120 struct regulator_config config = { };
121 struct regmap *regmap;
122 int ret;
123

--- 92 unchanged lines hidden (view full) ---

216};
217MODULE_DEVICE_TABLE(i2c, sy8824_id);
218
219static struct i2c_driver sy8824_regulator_driver = {
220 .driver = {
221 .name = "sy8824-regulator",
222 .of_match_table = of_match_ptr(sy8824_dt_ids),
223 },
225 .probe = sy8824_i2c_probe,
224 .probe_new = sy8824_i2c_probe,
226 .id_table = sy8824_id,
227};
228module_i2c_driver(sy8824_regulator_driver);
229
230MODULE_AUTHOR("Jisheng Zhang <jszhang@kernel.org>");
231MODULE_DESCRIPTION("SY8824C/SY8824E regulator driver");
232MODULE_LICENSE("GPL v2");
225 .id_table = sy8824_id,
226};
227module_i2c_driver(sy8824_regulator_driver);
228
229MODULE_AUTHOR("Jisheng Zhang <jszhang@kernel.org>");
230MODULE_DESCRIPTION("SY8824C/SY8824E regulator driver");
231MODULE_LICENSE("GPL v2");