Re: [PATCH] cpufreq: Use struct kobj_attribute instead of struct global_attr

2019-01-30 Thread Rafael J. Wysocki
On Friday, January 25, 2019 8:23:07 AM CET Viresh Kumar wrote: > The cpufreq_global_kobject is created using kobject_create_and_add() > helper, which assigns the kobj_type as dynamic_kobj_ktype and show/store > routines are set to kobj_attr_show() and kobj_attr_store(). > > These routines pass

[PATCH] cpufreq: Use struct kobj_attribute instead of struct global_attr

2019-01-24 Thread Viresh Kumar
The cpufreq_global_kobject is created using kobject_create_and_add() helper, which assigns the kobj_type as dynamic_kobj_ktype and show/store routines are set to kobj_attr_show() and kobj_attr_store(). These routines pass struct kobj_attribute as an argument to the show/store callbacks. But all