summaryrefslogtreecommitdiff
path: root/ina260_full.c
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-08-14 12:30:53 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-08-14 12:30:53 +0200
commit407619c8600ed015f609e947cb5a335377d161b1 (patch)
tree0f223024ff306bd3b090aad3636bf4d8c857364a /ina260_full.c
parent6cc025298349072691400fd6938459f41561830f (diff)
Minor changes
Diffstat (limited to 'ina260_full.c')
-rwxr-xr-xina260_full.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ina260_full.c b/ina260_full.c
index 283757c..f2fa004 100755
--- a/ina260_full.c
+++ b/ina260_full.c
@@ -1,3 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Driver for Texas Instruments INA260 power monitor chip
+ * Datasheet: https://www.ti.com/lit/gpn/INA260
+ *
+ * Copyright (C) 2023 GUEGAN Loic <loic.guegan@mailbox.org>
+ */
+
#include "linux/module.h"
#include "linux/uaccess.h"
#include "linux/i2c.h"
@@ -6,7 +14,7 @@
#include "linux/kernel.h"
#include <linux/sysfs.h>
-// ina260 chip registers
+// INA260 registers
#define INA260_REG_CONFIGURATION 0x00
#define INA260_REG_CURRENT 0x01
#define INA260_REG_VOLTAGE 0x02