backport: improve thermal backport
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 17 Mar 2016 09:29:10 +0000 (11:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Feb 2017 13:59:46 +0000 (14:59 +0100)
commit93d9195ecacfae4454379886ea5c2be8cb222bfc
tree8b1a29ac04c3293dff85809fe13a95997afd45f1
parent9621c7e27a9b9902b014fda7dff301be9645430c
backport: improve thermal backport

There were some API changes in the thermal framework in kernel version
4.3 and also earlier in 3.10.  Backport what is needed to support
older kernels.

The 4.3 change is a bit tricky, because it changes the prototypes of
some ops.  The solution for that is to add hook functions that will
intercept the calls from the thermal framework and convert them to
calls that the backported driver provides (namely convert unsigned
longs to ints).

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/thermal.h
backport/compat/backport-4.3.c