File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed
Documentation/ABI/testing Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -680,3 +680,31 @@ Description:
680
680
Valid values:
681
681
- 1: enabled
682
682
- 0: disabled
683
+
684
+ What: /sys/class/power_supply/<supply_name>/manufacture_year
685
+ Date: January 2020
686
+
687
+ Description:
688
+ Reports the year (following Gregorian calendar) when the device has been
689
+ manufactured.
690
+
691
+ Access: Read
692
+ Valid values: Reported as integer
693
+
694
+ What: /sys/class/power_supply/<supply_name>/manufacture_month
695
+ Date: January 2020
696
+
697
+ Description:
698
+ Reports the month when the device has been manufactured.
699
+
700
+ Access: Read
701
+ Valid values: 1-12
702
+
703
+ What: /sys/class/power_supply/<supply_name>/manufacture_day
704
+ Date: January 2020
705
+
706
+ Description:
707
+ Reports the day of month when the device has been manufactured.
708
+
709
+ Access: Read
710
+ Valid values: 1-31
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ static struct power_supply_attr power_supply_attrs[] = {
198
198
POWER_SUPPLY_ATTR (PRECHARGE_CURRENT ),
199
199
POWER_SUPPLY_ATTR (CHARGE_TERM_CURRENT ),
200
200
POWER_SUPPLY_ATTR (CALIBRATE ),
201
+ POWER_SUPPLY_ATTR (MANUFACTURE_YEAR ),
202
+ POWER_SUPPLY_ATTR (MANUFACTURE_MONTH ),
203
+ POWER_SUPPLY_ATTR (MANUFACTURE_DAY ),
201
204
/* Properties of type `const char *' */
202
205
POWER_SUPPLY_ATTR (MODEL_NAME ),
203
206
POWER_SUPPLY_ATTR (MANUFACTURER ),
Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ enum power_supply_property {
159
159
POWER_SUPPLY_PROP_PRECHARGE_CURRENT ,
160
160
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT ,
161
161
POWER_SUPPLY_PROP_CALIBRATE ,
162
+ POWER_SUPPLY_PROP_MANUFACTURE_YEAR ,
163
+ POWER_SUPPLY_PROP_MANUFACTURE_MONTH ,
164
+ POWER_SUPPLY_PROP_MANUFACTURE_DAY ,
162
165
/* Properties of type `const char *' */
163
166
POWER_SUPPLY_PROP_MODEL_NAME ,
164
167
POWER_SUPPLY_PROP_MANUFACTURER ,
You can’t perform that action at this time.
0 commit comments