OSDN Git Service

staging: clocking-wizard: Remove the hardcoding of the clock outputs
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Wed, 24 Feb 2021 13:10:39 +0000 (18:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:30 +0000 (09:25 +0100)
commita0d1a3864cad089eef3e0458d1abc31e9e101751
treee40aa12e95580e1aec35aad6984ad517575ac05f
parent91d695d71841ab4ed7d26e27ee194aed03328095
staging: clocking-wizard: Remove the hardcoding of the clock outputs

The number of output clocks are configurable in the hardware.
Currently the driver registers the maximum number of outputs.
Fix the same by registering only the outputs that are there.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/1614172241-17326-8-git-send-email-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c