mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Uwe Kleine-König](/assets/img/avatar_default.png)
bmc150_magn_remove() always returns zero. Make it return no value which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c driver remove callbacks is ignored anyway. This prepares making i2c remove callbacks return void, too. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220514133250.307955-1-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
12 lines
377 B
C
12 lines
377 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BMC150_MAGN_H_
|
|
#define _BMC150_MAGN_H_
|
|
|
|
extern const struct regmap_config bmc150_magn_regmap_config;
|
|
extern const struct dev_pm_ops bmc150_magn_pm_ops;
|
|
|
|
int bmc150_magn_probe(struct device *dev, struct regmap *regmap, int irq,
|
|
const char *name);
|
|
void bmc150_magn_remove(struct device *dev);
|
|
|
|
#endif /* _BMC150_MAGN_H_ */
|