thermal: Use thermal zone device id in netlink messages
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 2 Jan 2013 15:29:39 +0000 (15:29 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 16 Jan 2013 02:46:46 +0000 (10:46 +0800)
commit8ab3e6a08a98f7ff18c6814065eb30ba2e000233
tree79653389ffbff8e748815ca13a7a925e585ca2a9
parentc076fc42a4d6c51d6422aaf9f6626bf1adf983e7
thermal: Use thermal zone device id in netlink messages

This patch changes the function thermal_generate_netlink_event
to receive a thermal zone device instead of a originator id.

This way, the messages will always be bound to a thermal zone.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Documentation/thermal/sysfs-api.txt
drivers/thermal/thermal_sys.c
include/linux/thermal.h