| // SPDX-License-Identifier: GPL-2.0+ |
| * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com> |
| #define LOG_CATEGORY UCLASS_SPMI |
| int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg) |
| const struct dm_spmi_ops *ops = dev_get_driver_ops(dev); |
| return ops->read(dev, usid, pid, reg); |
| int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg, |
| const struct dm_spmi_ops *ops = dev_get_driver_ops(dev); |
| return ops->write(dev, usid, pid, reg, value); |
| .post_bind = dm_scan_fdt_dev, |