mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-19 01:48:56 +00:00
Most batteries today are ACPI "Control Method" batteries, but some models ship with the older "Smart Battery" that requires this code. Rich Townsend and Bruno Ducrot were the original authors. Vladimir Lebedev updated to run on latest kernel. http://bugzilla.kernel.org/show_bug.cgi?id=3734 Signed-off-by: Len Brown <len.brown@intel.com>
23 lines
543 B
C
23 lines
543 B
C
/*
|
|
* SMBus driver for ACPI Embedded Controller ($Revision: 1.2 $)
|
|
*
|
|
* Copyright (c) 2002, 2005 Ducrot Bruno
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation version 2.
|
|
*/
|
|
|
|
struct acpi_ec_smbus {
|
|
struct i2c_adapter adapter;
|
|
union acpi_ec *ec;
|
|
int base;
|
|
int alert;
|
|
};
|
|
|
|
struct acpi_ec_hc {
|
|
acpi_handle handle;
|
|
struct acpi_ec_smbus *smbus;
|
|
};
|
|
|
|
struct acpi_ec_hc *acpi_get_ec_hc(struct acpi_device *device);
|