dptf_power.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) dptf_power.c (290a20782ac6d1bfbd70541cacddaf9acbe1f1f5)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * dptf_power: DPTF platform power driver
4 * Copyright (c) 2016, Intel Corporation.
5 */
6
7#include <linux/kernel.h>
8#include <linux/module.h>
9#include <linux/acpi.h>
10#include <linux/platform_device.h>
11
12/*
13 * Presentation of attributes which are defined for INT3407 and INT3532.
14 * They are:
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * dptf_power: DPTF platform power driver
4 * Copyright (c) 2016, Intel Corporation.
5 */
6
7#include <linux/kernel.h>
8#include <linux/module.h>
9#include <linux/acpi.h>
10#include <linux/platform_device.h>
11
12/*
13 * Presentation of attributes which are defined for INT3407 and INT3532.
14 * They are:
15 * PMAX : Maximum platform powe
15 * PMAX : Maximum platform power
16 * PSRC : Platform power source
17 * ARTG : Adapter rating
18 * CTYP : Charger type
16 * PSRC : Platform power source
17 * ARTG : Adapter rating
18 * CTYP : Charger type
19 * PBSS : Battery steady power
20 * PROP : Rest of worst case platform Power
21 * PBSS : Power Battery Steady State
19 * PROP : Rest of worst case platform Power
20 * PBSS : Power Battery Steady State
22 * PBSS : Power Battery Steady State
23 * RBHF : High Frequency Impedance
24 * VBNL : Instantaneous No-Load Voltage
25 * CMPP : Current Discharge Capability
26 */
27#define DPTF_POWER_SHOW(name, object) \
28static ssize_t name##_show(struct device *dev,\
29 struct device_attribute *attr,\
30 char *buf)\

--- 223 unchanged lines hidden ---
21 * RBHF : High Frequency Impedance
22 * VBNL : Instantaneous No-Load Voltage
23 * CMPP : Current Discharge Capability
24 */
25#define DPTF_POWER_SHOW(name, object) \
26static ssize_t name##_show(struct device *dev,\
27 struct device_attribute *attr,\
28 char *buf)\

--- 223 unchanged lines hidden ---