mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Dmitry Torokhov](/assets/img/avatar_default.png)
With the switch to devm, there is no need for ad7879_probe() to return the touchscreen structure, we can use plain error code. This also fixes issue introduced with devm concersion, where we returned 0 on success (which worked OK since IS_ERR(0) would not trigger, but was not correct regardless). Fixes: 381f688eee3d ("Input: ad7879 - use more devm interfaces") Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
22 lines
411 B
C
22 lines
411 B
C
/*
|
|
* AD7879/AD7889 touchscreen (bus interfaces)
|
|
*
|
|
* Copyright (C) 2008-2010 Michael Hennerich, Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef _AD7879_H_
|
|
#define _AD7879_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
struct regmap;
|
|
|
|
extern const struct dev_pm_ops ad7879_pm_ops;
|
|
|
|
int ad7879_probe(struct device *dev, struct regmap *regmap,
|
|
int irq, u16 bustype, u8 devid);
|
|
|
|
#endif
|