mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Instead of creating driver-specific device attributes with devm_device_add_group() have device core do this by setting up dev_groups pointer in the driver structure. Acked-by: Michael Hennerich <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
25 lines
518 B
C
25 lines
518 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* AD7879/AD7889 touchscreen (bus interfaces)
|
|
*
|
|
* Copyright (C) 2008-2010 Michael Hennerich, Analog Devices Inc.
|
|
*/
|
|
|
|
#ifndef _AD7879_H_
|
|
#define _AD7879_H_
|
|
|
|
#include <linux/pm.h>
|
|
#include <linux/types.h>
|
|
|
|
struct attribute_group;
|
|
struct device;
|
|
struct regmap;
|
|
|
|
extern const struct attribute_group *ad7879_groups[];
|
|
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
|