bq4802
struct bq4802 *p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
u8 (*read)(struct bq4802 *, int);
void (*write)(struct bq4802 *, int, u8);
static u8 bq4802_read_io(struct bq4802 *p, int off)
static void bq4802_write_io(struct bq4802 *p, int off, u8 val)
static u8 bq4802_read_mem(struct bq4802 *p, int off)
static void bq4802_write_mem(struct bq4802 *p, int off, u8 val)
struct bq4802 *p = dev_get_drvdata(dev);
struct bq4802 *p = dev_get_drvdata(dev);