Lines Matching +full:max +full:- +full:load +full:- +full:value
4 * SPDX-License-Identifier: Apache-2.0
12 static void bq274xx_show_values(const char *type, struct sensor_value value) in bq274xx_show_values() argument
14 if ((value.val2 < 0) && (value.val1 >= 0)) { in bq274xx_show_values()
15 value.val2 = -(value.val2); in bq274xx_show_values()
16 printk("%s: -%d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
17 } else if ((value.val2 > 0) && (value.val1 < 0)) { in bq274xx_show_values()
18 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
19 } else if ((value.val2 < 0) && (value.val1 < 0)) { in bq274xx_show_values()
20 value.val2 = -(value.val2); in bq274xx_show_values()
21 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
23 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
45 printk("Unable to get the voltage value\n"); in do_main()
61 printk("Unable to get the current value\n"); in do_main()
78 printk("Unable to get the current value\n"); in do_main()
87 printk("Unable to fetch Max Load Current\n"); in do_main()
95 printk("Unable to get the current value\n"); in do_main()
99 bq274xx_show_values("Max Load Current in Amps", in do_main()
214 printk("Device %s is not ready\n", dev->name); in main()
218 printk("device is %p, name is %s\n", dev, dev->name); in main()