From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
Benoit Cousson <bcousson@baylibre.com>,
Patrick Titiano <ptitiano@baylibre.com>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: [PATCH 4/5] hwmon: ina2xx: change hex constants to lower-case
Date: Tue, 25 Nov 2014 16:47:02 +0100 [thread overview]
Message-ID: <1416930423-12179-5-git-send-email-bgolaszewski@baylibre.com> (raw)
In-Reply-To: <1416930423-12179-1-git-send-email-bgolaszewski@baylibre.com>
Make ina2xx uniform with the majority of the kernel code.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
drivers/hwmon/ina2xx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index 0914a72..41a5ad3 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -49,7 +49,7 @@
/* INA226 register definitions */
#define INA226_MASK_ENABLE 0x06
#define INA226_ALERT_LIMIT 0x07
-#define INA226_DIE_ID 0xFF
+#define INA226_DIE_ID 0xff
/* shunt resistor sysfs attribute index */
#define INA2XX_RSHUNT 0x8
@@ -64,7 +64,7 @@
#define INA2XX_MAX_REGISTERS 8
/* settings - depend on use case */
-#define INA219_CONFIG_DEFAULT 0x399F /* PGA=8 */
+#define INA219_CONFIG_DEFAULT 0x399f /* PGA=8 */
#define INA226_CONFIG_DEFAULT 0x4527 /* averages=16 */
/* worst case is 68.10 ms (~14.6Hz, ina219) */
@@ -74,8 +74,8 @@
#define INA2XX_RSHUNT_DEFAULT 10000
/* bit masks for the averaging setting in the configuration register */
-#define INA226_AVG_RD_MASK 0x0E00
-#define INA226_AVG_WR_MASK 0xF1FF
+#define INA226_AVG_RD_MASK 0x0e00
+#define INA226_AVG_WR_MASK 0xf1ff
#define INA226_READ_AVG(reg) ((reg & INA226_AVG_RD_MASK) >> 9)
--
2.1.3
next prev parent reply other threads:[~2014-11-25 15:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 15:46 [PATCH 0/5] hwmon: ina2xx: fixes & extensions Bartosz Golaszewski
2014-11-25 15:46 ` [PATCH 1/5] hwmon: ina2xx: bail-out from ina2xx_probe() in case of configuration errors Bartosz Golaszewski
2014-11-25 15:58 ` Guenter Roeck
2014-11-25 16:25 ` Bartosz Golaszewski
2014-11-25 16:59 ` Guenter Roeck
2014-11-25 17:50 ` Bartosz Golaszewski
2014-11-25 17:59 ` Guenter Roeck
2014-11-25 18:22 ` Bartosz Golaszewski
2014-11-25 18:30 ` Guenter Roeck
2014-11-26 3:05 ` Guenter Roeck
2014-11-26 9:13 ` Bartosz Golaszewski
2014-11-26 9:38 ` Benoit Cousson
2014-11-26 19:04 ` Guenter Roeck
2014-11-27 10:18 ` Jean Delvare
2014-11-25 15:47 ` [PATCH 2/5] hwmon: ina2xx: make shunt resistance configurable at run-time Bartosz Golaszewski
2014-11-25 15:59 ` Guenter Roeck
2014-11-25 16:09 ` Bartosz Gołaszewski
2014-11-25 15:47 ` [PATCH 3/5] hwmon: ina2xx: allow to change the averaging rate " Bartosz Golaszewski
2014-11-25 16:01 ` Guenter Roeck
2014-11-25 15:47 ` Bartosz Golaszewski [this message]
2014-11-25 15:47 ` [PATCH 5/5] hwmon: ina2xx: documentation update for new sysfs attributes Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1416930423-12179-5-git-send-email-bgolaszewski@baylibre.com \
--to=bgolaszewski@baylibre.com \
--cc=bcousson@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=ptitiano@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome