Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755512AbaKSIGq (ORCPT ); Wed, 19 Nov 2014 03:06:46 -0500 Received: from mail-ie0-f177.google.com ([209.85.223.177]:50140 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754976AbaKSIGp (ORCPT ); Wed, 19 Nov 2014 03:06:45 -0500 MIME-Version: 1.0 In-Reply-To: <1416321575-18348-2-git-send-email-edubezval@gmail.com> References: <1416321575-18348-1-git-send-email-edubezval@gmail.com> <1416321575-18348-2-git-send-email-edubezval@gmail.com> From: Alexandre Courbot Date: Wed, 19 Nov 2014 17:06:24 +0900 Message-ID: Subject: Re: [PATCHv4 1/1] thermal: of: improve of-thermal sensor registration API To: Eduardo Valentin Cc: Linux PM , Caesar Wang , Wei Ni , Lukasz Majewski , Mikko Perttunen , "devicetree@vger.kernel.org" , Grant Likely , Guenter Roeck , Jean Delvare , Linux Kernel Mailing List , "linux-tegra@vger.kernel.org" , lm-sensors@lm-sensors.org, Rob Herring , Stephen Warren , Thierry Reding , Zhang Rui Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 18, 2014 at 11:39 PM, Eduardo Valentin wrote: > Different drivers request API extensions in of-thermal. For this reason, > additional callbacks are required to fit the new drivers needs. > > The current API implementation expects the registering sensor driver > to provide a get_temp and get_trend callbacks as function parameters. > As the amount of callbacks is growing, this patch changes the existing > implementation to use a .ops field to hold all the of thermal callbacks > to sensor drivers. > > This patch also changes the existing of-thermal users to fit the new > API design. No functional change is introduced in this patch. A good idea even if no ops were to be added! Reviewed-by: Alexandre Courbot -- 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/