Message ID | 20190806091107.13322-1-iker.perez@codethink.co.uk (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-hwmon-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5101013AC for <patchwork-linux-hwmon@patchwork.kernel.org>; Tue, 6 Aug 2019 09:11:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D25D27F86 for <patchwork-linux-hwmon@patchwork.kernel.org>; Tue, 6 Aug 2019 09:11:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E92C28927; Tue, 6 Aug 2019 09:11:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2277327F86 for <patchwork-linux-hwmon@patchwork.kernel.org>; Tue, 6 Aug 2019 09:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732254AbfHFJLT (ORCPT <rfc822;patchwork-linux-hwmon@patchwork.kernel.org>); 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 <rfc822;linux-hwmon@vger.kernel.org>); 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 <ikerpalomar@ct-lt-765.unassigned>) id 1huvUu-0003Td-7Z; Tue, 06 Aug 2019 10:11:12 +0100 From: Iker Perez <iker.perez@codethink.co.uk> To: linux-hwmon@vger.kernel.org, linux@roeck-us.net Cc: jdelvare@suse.com, linux-kernel@vger.kernel.org, Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk> 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: <linux-hwmon.vger.kernel.org> X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add support for variable sample time in lm75 driver
|
expand
|
From: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk> 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(-)