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 kxsd9_common_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-5-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
13 lines
349 B
C
13 lines
349 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/device.h>
|
|
#include <linux/kernel.h>
|
|
|
|
#define KXSD9_STATE_RX_SIZE 2
|
|
#define KXSD9_STATE_TX_SIZE 2
|
|
|
|
int kxsd9_common_probe(struct device *dev,
|
|
struct regmap *map,
|
|
const char *name);
|
|
void kxsd9_common_remove(struct device *dev);
|
|
|
|
extern const struct dev_pm_ops kxsd9_dev_pm_ops;
|