cs35l45-spi.c (74b14e2850a34740c121cf2758d4181063d4c77c) | cs35l45-spi.c (6c07be8fe92c6b0c24ee1c599601dce3506b83c7) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31 if (IS_ERR(cs35l45->regmap)) { 32 ret = PTR_ERR(cs35l45->regmap); 33 dev_err(dev, "Failed to allocate register map: %d\n", ret); 34 return ret; 35 } 36 37 cs35l45->dev = dev; 38 cs35l45->irq = spi->irq; | 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 --- 22 unchanged lines hidden (view full) --- 31 if (IS_ERR(cs35l45->regmap)) { 32 ret = PTR_ERR(cs35l45->regmap); 33 dev_err(dev, "Failed to allocate register map: %d\n", ret); 34 return ret; 35 } 36 37 cs35l45->dev = dev; 38 cs35l45->irq = spi->irq; |
39 cs35l45->bus_type = CONTROL_BUS_SPI; |
|
39 40 return cs35l45_probe(cs35l45); 41} 42 43static void cs35l45_spi_remove(struct spi_device *spi) 44{ 45 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); 46 --- 31 unchanged lines hidden --- | 40 41 return cs35l45_probe(cs35l45); 42} 43 44static void cs35l45_spi_remove(struct spi_device *spi) 45{ 46 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); 47 --- 31 unchanged lines hidden --- |