mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 17:14:14 +08:00
98aaff7c4e
All idio-16 library consumers have migrated to the new interface leveraging the gpio-regmap API. Legacy interface functions and code are removed as no longer needed. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/651cff1cc3eb57b455a8048121cf6a4d4367f018.1680618405.git.william.gray@linaro.org/ Signed-off-by: William Breathitt Gray <william.gray@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
33 lines
867 B
C
33 lines
867 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright 2022 William Breathitt Gray */
|
|
#ifndef _IDIO_16_H_
|
|
#define _IDIO_16_H_
|
|
|
|
struct device;
|
|
struct regmap;
|
|
struct regmap_irq;
|
|
|
|
/**
|
|
* struct idio_16_regmap_config - Configuration for the IDIO-16 register map
|
|
* @parent: parent device
|
|
* @map: regmap for the IDIO-16 device
|
|
* @regmap_irqs: descriptors for individual IRQs
|
|
* @num_regmap_irqs: number of IRQ descriptors
|
|
* @irq: IRQ number for the IDIO-16 device
|
|
* @no_status: device has no status register
|
|
* @filters: device has input filters
|
|
*/
|
|
struct idio_16_regmap_config {
|
|
struct device *parent;
|
|
struct regmap *map;
|
|
const struct regmap_irq *regmap_irqs;
|
|
int num_regmap_irqs;
|
|
unsigned int irq;
|
|
bool no_status;
|
|
bool filters;
|
|
};
|
|
|
|
int devm_idio_16_regmap_register(struct device *dev, const struct idio_16_regmap_config *config);
|
|
|
|
#endif /* _IDIO_16_H_ */
|