Skip to content
Commit 9a2139c2 authored by Caleb Connolly's avatar Caleb Connolly Committed by Jonathan Cameron
Browse files

spmi: add a helper to look up an SPMI device from a device node



The helper function spmi_device_from_of() takes a device node and
returns the SPMI device associated with it.
This is like of_find_device_by_node but for SPMI devices.

Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220429220904.137297-2-caleb.connolly@linaro.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent f2906aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment