Skip to content
  • Andrew F. Davis's avatar
    power: supply: bq27xxx: move platform driver code into bq27xxx_battery_hdq.c · 67bd22c0
    Andrew F. Davis authored
    
    
    When the BQ27xxx driver was originally written the w1 subsystem only
    allowed device drivers for w1 attached devices to live in the w1
    subsystem. Kernel driver subsystems expect that the driver for a device
    live in the directory of the subsystem for which it implements
    functionality, not in the directory of the bus that it is attached. To
    work around this, the BQ27xxx driver was implemented as a platform device
    driver and the interface driver would instantiate this device from within
    the w1 directory, then pass a w1 read callback as platform data.
    
    As we can now have the w1 interface driver in the power/supply directory
    (like we do already with the i2c interface driver) we can remove this
    middle-layer platform driver.
    
    Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
    Acked-by: default avatarPali Rohár <pali.rohar@gmail.com>
    Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
    67bd22c0