diff options
| author | Gerhard Engleder <eg@keba.com> | 2024-10-11 22:12:56 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-13 18:16:57 +0300 |
| commit | ca7b844b91920573835ad11daaa30630ce112fe1 (patch) | |
| tree | d476d3581ecd8fe2d7dc50e763281a9f085e1c04 /include/linux/misc | |
| parent | f965d315bcbd65adfe5e3c161e46b5dc0a463f68 (diff) | |
| download | linux-ca7b844b91920573835ad11daaa30630ce112fe1.tar.xz | |
misc: keba: Add battery device
Add support for the battery auxiliary device. This enables monitoring of
the battery.
Signed-off-by: Gerhard Engleder <eg@keba.com>
Link: https://lore.kernel.org/r/20241011191257.19702-8-gerhard@engleder-embedded.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/misc')
| -rw-r--r-- | include/linux/misc/keba.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/misc/keba.h b/include/linux/misc/keba.h index 451777acc262..ca52716f8437 100644 --- a/include/linux/misc/keba.h +++ b/include/linux/misc/keba.h @@ -47,4 +47,14 @@ struct keba_fan_auxdev { struct resource io; }; +/** + * struct keba_batt_auxdev - KEBA battery auxiliary device + * @auxdev: auxiliary device object + * @io: address range of battery controller IO memory + */ +struct keba_batt_auxdev { + struct auxiliary_device auxdev; + struct resource io; +}; + #endif /* _LINUX_MISC_KEBA_H */ |
