Re: [PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-16 Thread Wei Wang
On Wed, Oct 16, 2019 at 10:16 AM Amit Kucheria wrote: > > On Wed, Oct 16, 2019 at 10:20 PM Amit Kucheria > wrote: > > > > On Tue, Oct 15, 2019 at 11:43 AM Wei Wang wrote: > > > > > > The paths thermal_zone%d and cooling_device%d are not intuitive and the > > > numbers are subject to change due t

Re: [PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-16 Thread Amit Kucheria
On Wed, Oct 16, 2019 at 10:20 PM Amit Kucheria wrote: > > On Tue, Oct 15, 2019 at 11:43 AM Wei Wang wrote: > > > > The paths thermal_zone%d and cooling_device%d are not intuitive and the > > numbers are subject to change due to device tree change. This usually > > leads to tree traversal in users

Re: [PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-16 Thread Amit Kucheria
On Tue, Oct 15, 2019 at 11:43 AM Wei Wang wrote: > > The paths thermal_zone%d and cooling_device%d are not intuitive and the > numbers are subject to change due to device tree change. This usually > leads to tree traversal in userspace code. > The patch creates `tz-by-name' and `cdev-by-name' for

[PATCH] thermal: create softlink by name for thermal_zone and cooling_device

2019-10-14 Thread Wei Wang
The paths thermal_zone%d and cooling_device%d are not intuitive and the numbers are subject to change due to device tree change. This usually leads to tree traversal in userspace code. The patch creates `tz-by-name' and `cdev-by-name' for thermal zone and cooling_device respectively. Signed-off-by