mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
![Linus Walleij](/assets/img/avatar_default.png)
This driver uses platform data to pass GPIO lines using the deprecated global GPIO numbers. There are no in-tree users of this platform data. Any out-of-tree or coming users of this driver can easily be migrated to use machine descriptor tables as described in Documentation/driver-api/gpio/board.rst section "platform data". Cc: Anish Kumar <anish198519851985@gmail.com> Cc: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
23 lines
688 B
C
23 lines
688 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012, Anish Kumar <anish198519851985@gmail.com>
|
|
*/
|
|
|
|
#ifndef GENERIC_ADC_BATTERY_H
|
|
#define GENERIC_ADC_BATTERY_H
|
|
|
|
/**
|
|
* struct gab_platform_data - platform_data for generic adc iio battery driver.
|
|
* @battery_info: recommended structure to specify static power supply
|
|
* parameters
|
|
* @cal_charge: calculate charge level.
|
|
* @jitter_delay: delay required after the interrupt to check battery
|
|
* status.Default set is 10ms.
|
|
*/
|
|
struct gab_platform_data {
|
|
struct power_supply_info battery_info;
|
|
int (*cal_charge)(long value);
|
|
int jitter_delay;
|
|
};
|
|
|
|
#endif /* GENERIC_ADC_BATTERY_H */
|