[PATCH 1/3] libsensors4: New prototype for sensors_get_detected_chips()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jean Delvare wrote:
> Add a parameter to sensors_get_detected_chips(), to optionally let the
> caller select which subset of chips it wants. This is slightly better
> size-wise than letting all applications do the filtering by themselves.
> 
> This will change the way the command line parameters of "sensors" are
> interpreted. Beforehand, the chips were always returned in the order
> in which they were listed by the library. Also, each chip could be listed
> only once. From now on, the chips will be listed in the order in which
> they are passed on the command line, which I think makes more sense. A
> side effect is that chips can be listed more than once, if that's what
> the user asks for. Not very useful though.
> 
> This change makes it possible to make sensors_match_chip() internal
> to the library. Filtering the list of chips returned by
> sensors_get_detected_chips() was the last known external use for this
> function.
> 
> This patch looks much bigger than it really is, but the largest part is
> really only code reindentation.
>

Yes, making it harder to review, anyways reviewed and it looks good.

Maybe next time when there is lot of indentation changes include 2 patches, the 
real one and one made with diff -uBb, the second one will then only show the 
real changes.

Regards,

Hans




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux