Lines Matching refs:spi
242 static int tle62x0_probe(struct spi_device *spi) in tle62x0_probe() argument
249 pdata = dev_get_platdata(&spi->dev); in tle62x0_probe()
251 dev_err(&spi->dev, "no device data specified\n"); in tle62x0_probe()
259 st->us = spi; in tle62x0_probe()
265 ret = device_create_file(&spi->dev, &dev_attr_status_show); in tle62x0_probe()
267 dev_err(&spi->dev, "cannot create status attribute\n"); in tle62x0_probe()
272 ret = device_create_file(&spi->dev, gpio_attrs[ptr]); in tle62x0_probe()
274 dev_err(&spi->dev, "cannot create gpio attribute\n"); in tle62x0_probe()
280 spi_set_drvdata(spi, st); in tle62x0_probe()
285 device_remove_file(&spi->dev, gpio_attrs[ptr]); in tle62x0_probe()
287 device_remove_file(&spi->dev, &dev_attr_status_show); in tle62x0_probe()
294 static int tle62x0_remove(struct spi_device *spi) in tle62x0_remove() argument
296 struct tle62x0_state *st = spi_get_drvdata(spi); in tle62x0_remove()
300 device_remove_file(&spi->dev, gpio_attrs[ptr]); in tle62x0_remove()
302 device_remove_file(&spi->dev, &dev_attr_status_show); in tle62x0_remove()