mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Uwe Kleine-König](/assets/img/avatar_default.png)
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>
16 lines
424 B
C
16 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
|