cs35l45-i2c.c (6085f9e6dc1973cf98ee7f5dcf629939e50f1b84) | cs35l45-i2c.c (6c07be8fe92c6b0c24ee1c599601dce3506b83c7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2// 3// cs35l45-i2c.c -- CS35L45 I2C driver 4// 5// Copyright 2019-2022 Cirrus Logic, Inc. 6// 7// Author: James Schulman <james.schulman@cirrus.com> 8 --- 19 unchanged lines hidden (view full) --- 28 if (IS_ERR(cs35l45->regmap)) { 29 ret = PTR_ERR(cs35l45->regmap); 30 dev_err(dev, "Failed to allocate register map: %d\n", ret); 31 return ret; 32 } 33 34 cs35l45->dev = dev; 35 cs35l45->irq = client->irq; | 1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2// 3// cs35l45-i2c.c -- CS35L45 I2C driver 4// 5// Copyright 2019-2022 Cirrus Logic, Inc. 6// 7// Author: James Schulman <james.schulman@cirrus.com> 8 --- 19 unchanged lines hidden (view full) --- 28 if (IS_ERR(cs35l45->regmap)) { 29 ret = PTR_ERR(cs35l45->regmap); 30 dev_err(dev, "Failed to allocate register map: %d\n", ret); 31 return ret; 32 } 33 34 cs35l45->dev = dev; 35 cs35l45->irq = client->irq; |
36 cs35l45->bus_type = CONTROL_BUS_I2C; 37 cs35l45->i2c_addr = client->addr; |
|
36 37 return cs35l45_probe(cs35l45); 38} 39 40static void cs35l45_i2c_remove(struct i2c_client *client) 41{ 42 struct cs35l45_private *cs35l45 = i2c_get_clientdata(client); 43 --- 31 unchanged lines hidden --- | 38 39 return cs35l45_probe(cs35l45); 40} 41 42static void cs35l45_i2c_remove(struct i2c_client *client) 43{ 44 struct cs35l45_private *cs35l45 = i2c_get_clientdata(client); 45 --- 31 unchanged lines hidden --- |