[PATCH net-next v4 4/9] dpll: netlink: Add DPLL framework base functions
Jakub Kicinski
kuba at kernel.org
Mon Aug 14 20:23:01 PDT 2023
On Fri, 11 Aug 2023 21:03:35 +0100 Vadim Fedorenko wrote:
> +static int
> +dpll_pin_freq_set(struct dpll_pin *pin, struct nlattr *a,
> + struct netlink_ext_ack *extack)
> +{
> + u64 freq = nla_get_u64(a);
> + struct dpll_pin_ref *ref;
> + unsigned long i;
> + int ret;
> +
> + if (!dpll_pin_is_freq_supported(pin, freq)) {
> + NL_SET_ERR_MSG_FMT(extack, "not supported freq:%llu", freq);
> + return -EINVAL;
> + }
NL_SET_ERR_MSG_ATTR(extack, a, "frequency not supported by the device")
More information about the linux-arm-kernel
mailing list