cs35l45-spi.c (e752ab11dcb48353727ea26eefd740155e028865) | cs35l45-spi.c (6085f9e6dc1973cf98ee7f5dcf629939e50f1b84) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2// 3// cs35l45-spi.c -- CS35L45 SPI driver 4// 5// Copyright 2019-2022 Cirrus Logic, Inc. 6// 7// Author: James Schulman <james.schulman@cirrus.com> 8 --- 18 unchanged lines hidden (view full) --- 27 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); 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; | 1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2// 3// cs35l45-spi.c -- CS35L45 SPI driver 4// 5// Copyright 2019-2022 Cirrus Logic, Inc. 6// 7// Author: James Schulman <james.schulman@cirrus.com> 8 --- 18 unchanged lines hidden (view full) --- 27 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); 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 = spi->irq; |
|
35 36 return cs35l45_probe(cs35l45); 37} 38 39static void cs35l45_spi_remove(struct spi_device *spi) 40{ 41 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); 42 --- 31 unchanged lines hidden --- | 36 37 return cs35l45_probe(cs35l45); 38} 39 40static void cs35l45_spi_remove(struct spi_device *spi) 41{ 42 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); 43 --- 31 unchanged lines hidden --- |