RE: [PATCH 2/5] thermal: share get_ida()/release_ida() for other thermal ida users
From: Matthew Wilcox <hidden>
Date: 2016-12-21 22:25:21
From: Matthew Wilcox <hidden>
Date: 2016-12-21 22:25:21
From: Zhang Rui [mailto:rui.zhang@intel.com]
* - thermal zone devices lifecycle: registration, unregistration, * binding, and unbinding. */ -static int get_ida(struct ida *ida, struct mutex *lock, int *id) +int get_ida(struct ida *ida, struct mutex *lock, int *id)
I don't like making a function as generically named as "get_ida" non-static. Unless it's part of the IDA code :-) In any case, I don't think these drivers need their own mutexes, so I sent a replacement set of patches.