From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawnguo@kernel.org (Shawn Guo) Date: Wed, 2 May 2018 16:52:22 +0800 Subject: [PATCH 50/61] thermal: simplify getting .drvdata In-Reply-To: <20180419140641.27926-51-wsa+renesas@sang-engineering.com> References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> <20180419140641.27926-51-wsa+renesas@sang-engineering.com> Message-ID: <20180502085221.GH3443@dragon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Apr 19, 2018 at 04:06:20PM +0200, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > drivers/thermal/rockchip_thermal.c | 8 +++----- > drivers/thermal/spear_thermal.c | 8 +++----- > drivers/thermal/zx2967_thermal.c | 6 ++---- > 3 files changed, 8 insertions(+), 14 deletions(-) For zx2967_thermal, Acked-by: Shawn Guo