Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165758AbdDXGts (ORCPT ); Mon, 24 Apr 2017 02:49:48 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:36836 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165718AbdDXGtk (ORCPT ); Mon, 24 Apr 2017 02:49:40 -0400 MIME-Version: 1.0 In-Reply-To: <58FD77DA.9000007@denx.de> References: <1492956651-15321-1-git-send-email-rahulbedarkar89@gmail.com> <6e36d265-294b-d700-3896-9f1a6d656a08@roeck-us.net> <58FD77DA.9000007@denx.de> From: Rahul Bedarkar Date: Mon, 24 Apr 2017 12:19:18 +0530 X-Google-Sender-Auth: aDnt0JnR2J3LUL45Ay8haXPUmr8 Message-ID: Subject: Re: [PATCH] hwmon: tmp103: use SIMPLE_DEV_PM_OPS helper macro To: hs@denx.de, Guenter Roeck Cc: Jean Delvare , linux-hwmon@vger.kernel.org, open list Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 52 Hello Guenter, Heiko, On Mon, Apr 24, 2017 at 9:28 AM, Heiko Schocher wrote: > Hello Guenter, Rahul, > > Hmm.. I like this patch too, but have also no idea, what is preffered. > > Looking into drivers/hwmon > > pollux:linux hs [master] $ grep -lr __maybe_unused drivers/hwmon/ > drivers/hwmon/tmp108.c > drivers/hwmon/nct6775.c > drivers/hwmon/hwmon-vid.c > drivers/hwmon/max31722.c > > Ok, there are hwmon drivers, which use this version already ... Yes, some hwmon drivers already use this approach. Some drivers in other sub systems also using it from start or moving towards this approach. > > pollux:linux hs [master] $ grep -lr CONFIG_PM drivers/hwmon/ > drivers/hwmon/max6639.c > drivers/hwmon/jc42.c > drivers/hwmon/fam15h_power.c > drivers/hwmon/tmp102.c > drivers/hwmon/gpio-fan.c > drivers/hwmon/pwm-fan.c > drivers/hwmon/tmp103.c > drivers/hwmon/pmbus/Makefile > drivers/hwmon/lm75.c > drivers/hwmon/nct6683.c > drivers/hwmon/adt7x10.h > drivers/hwmon/w83627hf.c > drivers/hwmon/abituguru3.c > drivers/hwmon/Makefile > drivers/hwmon/acpi_power_meter.c > drivers/hwmon/adt7x10.c > drivers/hwmon/abituguru.c > drivers/hwmon/w83627ehf.c > > May this conversion should be done in a patch, which touches more > devices? I'm happy send patches converting remaining drivers once this is settled or accepted. Thanks for your reviews. Regards, Rahul