Loading drivers/mfd/wcd9xxx-core.c +21 −0 Original line number Diff line number Diff line Loading @@ -373,6 +373,27 @@ int wcd9xxx_slim_write_repeat(struct wcd9xxx *wcd9xxx, unsigned short reg, } EXPORT_SYMBOL(wcd9xxx_slim_write_repeat); /* * wcd9xxx_slim_reserve_bw: API to reserve the slimbus bandwidth * @wcd9xxx: Handle to the wcd9xxx core * @bw_ops: value of the bandwidth that is requested * @commit: Flag to indicate if bandwidth change is to be commited * right away */ int wcd9xxx_slim_reserve_bw(struct wcd9xxx *wcd9xxx, u32 bw_ops, bool commit) { if (!wcd9xxx || !wcd9xxx->slim) { pr_err("%s: Invalid handle to %s\n", __func__, (!wcd9xxx) ? "wcd9xxx" : "slim_device"); return -EINVAL; } return slim_reservemsg_bw(wcd9xxx->slim, bw_ops, commit); } EXPORT_SYMBOL(wcd9xxx_slim_reserve_bw); /* Interface specifies whether the write is to the interface or general * registers. */ Loading include/linux/mfd/wcd9xxx/core.h +2 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,8 @@ int wcd9xxx_interface_reg_write(struct wcd9xxx *wcd9xxx, unsigned short reg, int wcd9xxx_get_logical_addresses(u8 *pgd_la, u8 *inf_la); int wcd9xxx_slim_write_repeat(struct wcd9xxx *wcd9xxx, unsigned short reg, int bytes, void *src); int wcd9xxx_slim_reserve_bw(struct wcd9xxx *wcd9xxx, u32 bw_ops, bool commit); #if defined(CONFIG_WCD9310_CODEC) || \ defined(CONFIG_WCD9304_CODEC) || \ Loading Loading
drivers/mfd/wcd9xxx-core.c +21 −0 Original line number Diff line number Diff line Loading @@ -373,6 +373,27 @@ int wcd9xxx_slim_write_repeat(struct wcd9xxx *wcd9xxx, unsigned short reg, } EXPORT_SYMBOL(wcd9xxx_slim_write_repeat); /* * wcd9xxx_slim_reserve_bw: API to reserve the slimbus bandwidth * @wcd9xxx: Handle to the wcd9xxx core * @bw_ops: value of the bandwidth that is requested * @commit: Flag to indicate if bandwidth change is to be commited * right away */ int wcd9xxx_slim_reserve_bw(struct wcd9xxx *wcd9xxx, u32 bw_ops, bool commit) { if (!wcd9xxx || !wcd9xxx->slim) { pr_err("%s: Invalid handle to %s\n", __func__, (!wcd9xxx) ? "wcd9xxx" : "slim_device"); return -EINVAL; } return slim_reservemsg_bw(wcd9xxx->slim, bw_ops, commit); } EXPORT_SYMBOL(wcd9xxx_slim_reserve_bw); /* Interface specifies whether the write is to the interface or general * registers. */ Loading
include/linux/mfd/wcd9xxx/core.h +2 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,8 @@ int wcd9xxx_interface_reg_write(struct wcd9xxx *wcd9xxx, unsigned short reg, int wcd9xxx_get_logical_addresses(u8 *pgd_la, u8 *inf_la); int wcd9xxx_slim_write_repeat(struct wcd9xxx *wcd9xxx, unsigned short reg, int bytes, void *src); int wcd9xxx_slim_reserve_bw(struct wcd9xxx *wcd9xxx, u32 bw_ops, bool commit); #if defined(CONFIG_WCD9310_CODEC) || \ defined(CONFIG_WCD9304_CODEC) || \ Loading