Re: smartbattery support

Pedro Venda
2004-10-11T21:25:41Z

Pedro Venda wrote:
>>> Device (SMBC)
>>> {
>>> Name (_HID, "ACPI0001")
>>> Name (_EC, 0x1820)
>>> Device (SBS0)
>>> {
>>> Name (_HID, "ACPI0002")
>>> Name (_SBS, 0x02)
>>> }
>>> }

hi everyone,

i can't get an acpi_handle for the ec host.

i am writing code in bruno ducrot's i2c-ec-smbus driver and i'm trying
to detect the smbus address from the ACPI's ASL code above.

i'm trying to acpi_get_handle(NULL,"_EC",ec->handle) but it fails
because of the parent=NULL (i think).

i suspect i need to use the ec driver's device handler in the parent
paramenter of acpi_get_handle(). is that correct?

or am i doing everything wrong?

[]