523742f211
Up to now mma7455_core_remove() returns zero unconditionally. Make it return void instead which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c and spi remove callbacks is ignored anyway. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Link: https://lore.kernel.org/r/20211013203223.2694577-6-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
17 lines
424 B
C
17 lines
424 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* IIO accel driver for Freescale MMA7455L 3-axis 10-bit accelerometer
|
|
* Copyright 2015 Joachim Eastwood <manabian@gmail.com>
|
|
*/
|
|
|
|
#ifndef __MMA7455_H
|
|
#define __MMA7455_H
|
|
|
|
extern const struct regmap_config mma7455_core_regmap;
|
|
|
|
int mma7455_core_probe(struct device *dev, struct regmap *regmap,
|
|
const char *name);
|
|
void mma7455_core_remove(struct device *dev);
|
|
|
|
#endif
|