On 08-09-25, 15:08, Zihuan Zhang wrote:Understood, I thinks there is some reason that the two separate verification functions exist.
One idea we are considering is to check whether driver->verify points toI don't this is a good idea. It isn't necessary for any driver to use
cpufreq_generic_frequency_table_verify and use that as a heuristic to
enforce the presence of target_index():
((driver_data->verify == cpufreq_generic_frequency_table_verify) !=
!!driver_data->target_index)
I haven’t tested this approach yet, so I’m not sure if it will be fully
reliable.
the generic functions.