lm4857.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | lm4857.c (182f3ebd5d34437f8bf53fe4d37ccc817b003648) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * LM4857 AMP driver 4 * 5 * Copyright 2007 Wolfson Microelectronics PLC. 6 * Author: Graeme Gregory 7 * graeme.gregory@wolfsonmicro.com 8 * Copyright 2011 Lars-Peter Clausen <lars@metafoo.de> --- 101 unchanged lines hidden (view full) --- 110 111 .max_register = LM4857_CTRL, 112 113 .cache_type = REGCACHE_FLAT, 114 .reg_defaults = lm4857_default_regs, 115 .num_reg_defaults = ARRAY_SIZE(lm4857_default_regs), 116}; 117 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * LM4857 AMP driver 4 * 5 * Copyright 2007 Wolfson Microelectronics PLC. 6 * Author: Graeme Gregory 7 * graeme.gregory@wolfsonmicro.com 8 * Copyright 2011 Lars-Peter Clausen <lars@metafoo.de> --- 101 unchanged lines hidden (view full) --- 110 111 .max_register = LM4857_CTRL, 112 113 .cache_type = REGCACHE_FLAT, 114 .reg_defaults = lm4857_default_regs, 115 .num_reg_defaults = ARRAY_SIZE(lm4857_default_regs), 116}; 117 |
118static int lm4857_i2c_probe(struct i2c_client *i2c, 119 const struct i2c_device_id *id) | 118static int lm4857_i2c_probe(struct i2c_client *i2c) |
120{ 121 struct regmap *regmap; 122 123 regmap = devm_regmap_init_i2c(i2c, &lm4857_regmap_config); 124 if (IS_ERR(regmap)) 125 return PTR_ERR(regmap); 126 127 return devm_snd_soc_register_component(&i2c->dev, --- 5 unchanged lines hidden (view full) --- 133 { } 134}; 135MODULE_DEVICE_TABLE(i2c, lm4857_i2c_id); 136 137static struct i2c_driver lm4857_i2c_driver = { 138 .driver = { 139 .name = "lm4857", 140 }, | 119{ 120 struct regmap *regmap; 121 122 regmap = devm_regmap_init_i2c(i2c, &lm4857_regmap_config); 123 if (IS_ERR(regmap)) 124 return PTR_ERR(regmap); 125 126 return devm_snd_soc_register_component(&i2c->dev, --- 5 unchanged lines hidden (view full) --- 132 { } 133}; 134MODULE_DEVICE_TABLE(i2c, lm4857_i2c_id); 135 136static struct i2c_driver lm4857_i2c_driver = { 137 .driver = { 138 .name = "lm4857", 139 }, |
141 .probe = lm4857_i2c_probe, | 140 .probe_new = lm4857_i2c_probe, |
142 .id_table = lm4857_i2c_id, 143}; 144 145module_i2c_driver(lm4857_i2c_driver); 146 147MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); 148MODULE_DESCRIPTION("LM4857 amplifier driver"); 149MODULE_LICENSE("GPL"); | 141 .id_table = lm4857_i2c_id, 142}; 143 144module_i2c_driver(lm4857_i2c_driver); 145 146MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); 147MODULE_DESCRIPTION("LM4857 amplifier driver"); 148MODULE_LICENSE("GPL"); |