mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
d04d46dd82
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>
13 lines
377 B
C
13 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_ */
|