Hi All, Here is v3 of my series to add support for having the bytcrc_pwrsrc driver register a power_supply class device and adding a new driver for battery monitoring using the Vexia EDU ATLA 10 EC. Changes in v3: - Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32 bytes as bufsize - Add UPDATE_INTERVAL_JIFFIES define Changes in v2: - Makefile tweaks - postfix variable/define names with units (e.g. _mV / _mAh) - Replace i2c_smbus_read_i2c_block_data() with i2c_smbus_read_block_data() which takes care of the length byte prefixing the buffer for us - Address other small review remarks Regards, Hans Hans de Goede (2): platform/x86/intel: bytcrc_pwrsrc: Optionally register a power_supply dev platform/x86: x86-android-tablets: Add Vexia EDU ATLA 10 EC battery driver drivers/platform/x86/intel/bytcrc_pwrsrc.c | 79 +++++- .../platform/x86/x86-android-tablets/Makefile | 2 +- .../x86/x86-android-tablets/vexia_atla10_ec.c | 261 ++++++++++++++++++ 3 files changed, 339 insertions(+), 3 deletions(-) create mode 100644 drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c -- 2.47.0