mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-04-17 11:23:02 +00:00
Minor changes
This commit is contained in:
parent
6cc0252983
commit
407619c860
2 changed files with 18 additions and 2 deletions
10
ina260.c
10
ina260.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"
|
||||
|
@ -8,7 +16,7 @@
|
|||
#include <linux/hwmon.h>
|
||||
#include <linux/regmap.h>
|
||||
|
||||
// ina260 chip registers
|
||||
// INA260 registers
|
||||
#define INA260_REG_CONFIGURATION 0x00
|
||||
#define INA260_REG_CURRENT 0x01
|
||||
#define INA260_REG_VOLTAGE 0x02
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue