From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754279AbaK0J73 (ORCPT ); Thu, 27 Nov 2014 04:59:29 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38715 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbaK0J70 (ORCPT ); Thu, 27 Nov 2014 04:59:26 -0500 From: Bartosz Golaszewski To: Guenter Roeck Cc: LKML , Benoit Cousson , Patrick Titiano , LM Sensors , Jean Delvare , Bartosz Golaszewski Subject: [PATCH v2 0/5] hwmon: ina2xx: fixes & extensions Date: Thu, 27 Nov 2014 10:59:05 +0100 Message-Id: <1417082350-23470-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes an initialization issue we've experienced with the ina2xx driver and extends the sysfs interface to make the driver configurable at run-time. The shunt_resistor attribute allows to change the shunt resistance value at run-time in cases where ina2xx used to do the measurement isn't integrated with the shunt. The avg_rate attribute allows to increase/decrease noise reduction. Bartosz Golaszewski (5): hwmon: ina2xx: bail-out from ina2xx_probe() in case of configuration errors hwmon: ina2xx: make shunt resistance configurable at run-time hwmon: ina2xx: allow to change the averaging rate at run-time hwmon: ina2xx: change hex constants to lower-case hwmon: ina2xx: documentation update for new sysfs attributes Documentation/hwmon/ina2xx | 10 ++- drivers/hwmon/ina2xx.c | 187 +++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 181 insertions(+), 16 deletions(-) -- 2.1.3