From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5911DC433FF for ; Tue, 6 Aug 2019 09:11:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35EBA20B1F for ; Tue, 6 Aug 2019 09:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732254AbfHFJLT (ORCPT ); Tue, 6 Aug 2019 05:11:19 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:52730 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728845AbfHFJLT (ORCPT ); Tue, 6 Aug 2019 05:11:19 -0400 Received: from [167.98.27.226] (helo=ct-lt-765.unassigned) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1huvUu-0005Yg-TS; Tue, 06 Aug 2019 10:11:13 +0100 Received: from ikerpalomar by ct-lt-765.unassigned with local (Exim 4.89) (envelope-from ) id 1huvUu-0003Td-7Z; Tue, 06 Aug 2019 10:11:12 +0100 From: Iker Perez To: linux-hwmon@vger.kernel.org, linux@roeck-us.net Cc: jdelvare@suse.com, linux-kernel@vger.kernel.org, Iker Perez del Palomar Sustatxa Subject: [PATCH 0/4] Add support for variable sample time in lm75 driver Date: Tue, 6 Aug 2019 10:11:03 +0100 Message-Id: <20190806091107.13322-1-iker.perez@codethink.co.uk> X-Mailer: git-send-email 2.11.0 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org From: Iker Perez del Palomar Sustatxa Hello, The objective of following patch series is to add support to lm75 driver to be able to configure the sample time of it's supported devices, particularly the tmp75b. The applied changes involve: * Replace the current switch-case method for configuration parameters selection to a structure storing them. This method allows easier management of the parameters. * Split the writing of configuration registers into a separate function. This method saves code in later patches. * Include new fields in lm75_params to add support for multiple sample times. * Split the lm75_write functionality into separate, simpler, functions. * Add support for configuring the devices via their sysfs nodes. The patch series was based on linux-next's master branch. Thank you Guenter Roeck, Michael Drake, Thomas Preston and Tom Eccles for your time, help and feedback. Regards, Iker Perez del Palomar Sustatxa (4): hwmon: (lm75) Create structure to save all the configuration parameters. hwmon: (lm75) Create function from code to write into registers hwmon: (lm75) Add new fields into lm75_params_ hwmon: (lm75) Modularize lm75_write and make hwmon_chip writable drivers/hwmon/lm75.c | 373 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 257 insertions(+), 116 deletions(-) -- 2.11.0