edea1a2c17
APM_IOC_GETPOWER ioctl read/write. Setting the batteryid in the passed structure returns the data for just that battery. The old ioctl remains for binary compatibility but has been renamed. Itojun already did the hard work -- I just added a couple of lines. reviewed by: thorpej