Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804AbbKXB2f (ORCPT ); Mon, 23 Nov 2015 20:28:35 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:38805 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752488AbbKXB2c (ORCPT ); Mon, 23 Nov 2015 20:28:32 -0500 X-AuditID: cbfec7f5-f79b16d000005389-f9-5653bd3d2a53 Subject: Re: [PATCH] thermal: exynos: use of_property_read_u8() To: Eduardo Valentin , Saurabh Sengar References: <1448287841-4816-1-git-send-email-saurabh.truth@gmail.com> <20151123232933.GB6815@localhost.localdomain> Cc: l.majewski@samsung.com, rui.zhang@intel.com, kgene@kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <5653BD39.6060406@samsung.com> Date: Tue, 24 Nov 2015 10:28:25 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <20151123232933.GB6815@localhost.localdomain> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsVy+t/xa7q2e4PDDJ58Y7SYf+Uaq8XrF4YW /Y9fM1u8ebiZ0eLyrjlsFjPO72OyePKwj81ixy0BBw6PnbPusnss3vOSyWPTqk42j74tqxg9 Pm+SC2CN4rJJSc3JLEst0rdL4MrY0HiOteA1W8WfV5MZGxhXsXYxcnJICJhIzNnTzARhi0lc uLeerYuRi0NIYCmjxIGJNxghnC+MEusfnWYHqRIWsJc42dYM1i0iECYx++MPsG4hgTKJ5lVf wLqZBVoYJc5/uAHWwCZgLLF5+RI2iBVyEr3dk1i6GDk4eAW0JGbdSQcJswioSmx6ORtsjqhA hMTECQ1g83kFBCV+TL7HAmJzClhJnOy9xQTSyiygJ3H/ohZImFlAXmLzmrfMExgFZyHpmIVQ NQtJ1QJG5lWMoqmlyQXFSem5RnrFibnFpXnpesn5uZsYIRHwdQfj0mNWhxgFOBiVeHg/lASH CbEmlhVX5h5ilOBgVhLh1VwCFOJNSaysSi3Kjy8qzUktPsQozcGiJM47c9f7ECGB9MSS1OzU 1ILUIpgsEwenVANjmdbH5NrrUScDKu+sW7m4+uVeW6ughIvfV776nlp/YXfv7DX5XxJKZpVP Ym88toan5827SPfPl4VOTJ+sdGxHUuuP+vDHYZ/vKhqyzyzQm+1w3mxVBstLuWlPVa7/+s/W meEw59pTB0uN+e477h8NMt1evGj5npOzTsxlcI/eoCAd4TK5sKyGUYmlOCPRUIu5qDgRAD38 5Ip8AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 31 On 24.11.2015 08:29, Eduardo Valentin wrote: > On Mon, Nov 23, 2015 at 07:40:41PM +0530, Saurabh Sengar wrote: >> use of_property_read_u8() for u8 variables, >> also changed the return type to void as this function return type >> is nowhere used. >> > > I would be good if you could split both changes into two patches. > > Also, I still do not understand properly the proposal to use u8. > > Why are they u8? > > If they are so, please document them in their DT bindings. Today, the > bindings tell us they are s32 (as there is nothing really specifying the > type). It looks like u8 came from platform data from old times when the driver did not support DT. All of our Exynos mainline boards are converted to DT, so I think legacy platform data can be also changed to match DT. Which means changing from u8 to u32. Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/