linux-uconsole/include
Javi Merino 5dcb4226bb BACKPORT: devfreq_cooling: pass a pointer to devfreq in the power model callbacks
When the devfreq cooling device was designed, it was an oversight not to
pass a pointer to the struct devfreq as the first parameters of the
callbacks.  The design patterns of the kernel suggest it for a good
reason.

By passing a pointer to struct devfreq, the driver can register one
function that works with multiple devices.  With the current
implementation, a driver that can work with multiple devices has to
create multiple copies of the same function with different parameters so
that each devfreq_cooling_device can use the appropriate one.  By
passing a pointer to struct devfreq, the driver can identify which
device it's referring to.

Change-Id: I384bf9aafd2391eccab2ca6a76e4e57f2740aa6b
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Reviewed-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Ørjan Eide <orjan.eide@arm.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 3aa5374376)
2018-01-04 09:22:34 +08:00
..
acpi UPSTREAM: device property: Avoid potential dereferences of invalid pointers 2017-08-30 14:50:28 +08:00
asm-generic Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-12-01 11:04:13 +08:00
clocksource
crypto Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2017-04-23 12:02:14 +08:00
drm drm: bridge: dw-hdmi: introduce mpll_cfg_420 2017-12-11 15:27:58 +08:00
dt-bindings PM / devfreq: rockchip_dmc: add support for rk3328 2017-12-28 08:48:54 +08:00
keys
kvm
linux BACKPORT: devfreq_cooling: pass a pointer to devfreq in the power model callbacks 2018-01-04 09:22:34 +08:00
math-emu
media UPSTREAM: [media] cec: Add cec_get_drvdata() 2017-12-27 16:43:52 +08:00
memory
misc
net BACKPORT: tcp/dccp: drop SYN packets if accept queue is full 2017-12-21 10:42:52 +08:00
pcmcia
ras
rdma RDMA/core: Fix incorrect structure packing for booleans 2017-03-12 06:37:29 +01:00
rxrpc
scsi scsi: libiscsi: add lock around task lists to fix list corruption regression 2017-03-26 12:13:19 +02:00
soc soc: rockchip: add functions to select opp level form device-tree 2018-01-02 10:21:39 +08:00
sound Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-12-01 11:04:13 +08:00
target target/iscsi: Fix iSCSI task reassignment handling 2017-11-18 11:11:07 +01:00
trace Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-12-01 11:04:13 +08:00
uapi drm/rockchip: add afbdc feature for plane 2017-12-28 11:04:01 +08:00
video
xen fix xen_swiotlb_dma_mmap prototype 2017-10-05 09:41:48 +02:00
Kbuild