[RFC PATCH v3 6/6] ptp_ocp: implement DPLL ops
Jiri Pirko
jiri at resnulli.us
Wed Oct 12 08:14:46 PDT 2022
Mon, Oct 10, 2022 at 03:18:04AM CEST, vfedorenko at novek.ru wrote:
>From: Vadim Fedorenko <vadfed at fb.com>
[...]
>+static int ptp_ocp_dpll_get_status(struct dpll_device *dpll)
>+{
>+ struct ptp_ocp *bp = (struct ptp_ocp *)dpll_priv(dpll);
Avoid cast from (void *), not needed. (I also mentioned this in RFCv2).
>+ int sync;
>+
>+ sync = ioread32(&bp->reg->status) & OCP_STATUS_IN_SYNC;
>+ return sync;
>+}
>+
[...]
More information about the linux-arm-kernel
mailing list