Jean Delvare wrote: > Now that we can deduce the scaling factor required for each feature > from its type, there's no need to store this scaling factor. We can > instead compute it at runtime. This saves some memory (about 10 kB > in my real-world test), and the runtime overhead is totally > negligible. > Looks good. > Note that the structures sensors_chip_feature and sensors_feature_data > are now exactly the same, so we could use one structure everywhere. > The only advantage to have two structures is that sensors_feature_data > is part of the API, while sensors_chip_feature is not, so if we > ever need to add internal attributes, for example to improve performance, > having an internal structure can be helpful. Question is, will we > actually ever need this? Opinion anyone? > I think it would be better to make them one and the same structure then, to avoid confusion. Regards, Hans