mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
Fix trailing white space and end of file
This commit is contained in:
parent
52bfd8d924
commit
2678cb00d4
37 changed files with 5 additions and 38 deletions
|
|
@ -716,4 +716,3 @@ up_client_new_finish (GAsyncResult *res,
|
||||||
|
|
||||||
return g_task_propagate_pointer (G_TASK (res), error);
|
return g_task_propagate_pointer (G_TASK (res), error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,4 +103,3 @@ gboolean up_client_get_on_battery (UpClient *client);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_CLIENT_H */
|
#endif /* __UP_CLIENT_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,4 +94,3 @@ const gchar *up_device_get_object_path (UpDevice *device);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_H */
|
#endif /* __UP_DEVICE_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -352,4 +352,3 @@ up_history_item_new (void)
|
||||||
{
|
{
|
||||||
return UP_HISTORY_ITEM (g_object_new (UP_TYPE_HISTORY_ITEM, NULL));
|
return UP_HISTORY_ITEM (g_object_new (UP_TYPE_HISTORY_ITEM, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,4 +69,3 @@ gboolean up_history_item_set_from_string (UpHistoryItem *history_item,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_HISTORY_ITEM_H */
|
#endif /* __UP_HISTORY_ITEM_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -226,4 +226,3 @@ up_stats_item_new (void)
|
||||||
{
|
{
|
||||||
return UP_STATS_ITEM (g_object_new (UP_TYPE_STATS_ITEM, NULL));
|
return UP_STATS_ITEM (g_object_new (UP_TYPE_STATS_ITEM, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,4 +61,3 @@ void up_stats_item_set_accuracy (UpStatsItem *stats_item,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_STATS_ITEM_H */
|
#endif /* __UP_STATS_ITEM_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,4 +139,3 @@ UpDeviceLevel up_device_level_from_string (const gchar *level);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_TYPES_H */
|
#endif /* __UP_TYPES_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,3 @@
|
||||||
#undef __UPOWER_H_INSIDE__
|
#undef __UPOWER_H_INSIDE__
|
||||||
|
|
||||||
#endif /* __UPOWER_H__ */
|
#endif /* __UPOWER_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,3 @@ up_native_get_native_path (GObject *object)
|
||||||
{
|
{
|
||||||
return "/sys/dummy";
|
return "/sys/dummy";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -228,4 +228,3 @@ static void up_acpi_native_get_property (GObject * object, guint property_id, GV
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -383,4 +383,3 @@ up_backend_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (UP_TYPE_BACKEND, NULL);
|
return g_object_new (UP_TYPE_BACKEND, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,4 +52,3 @@ GType up_device_supply_get_type (void);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_SUPPLY_H__ */
|
#endif /* __UP_DEVICE_SUPPLY_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,4 +118,3 @@ up_get_string_sysctl (GError **err, const gchar *format, ...)
|
||||||
return g_strdup ("asdf");
|
return g_strdup ("asdf");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1643,7 +1643,7 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
" abrupt power loss due to battery exhaustion may lead to data"
|
" abrupt power loss due to battery exhaustion may lead to data"
|
||||||
" corruption. The system will perform \"HybridSleep\" instead."
|
" corruption. The system will perform \"HybridSleep\" instead."
|
||||||
" Use AllowRiskyCriticalPowerAction=true to enable support for"
|
" Use AllowRiskyCriticalPowerAction=true to enable support for"
|
||||||
" risky settings.",
|
" risky settings.",
|
||||||
timeout=UP_DAEMON_ACTION_DELAY + 0.5)
|
timeout=UP_DAEMON_ACTION_DELAY + 0.5)
|
||||||
|
|
||||||
# simulate that battery has 1% (less than PercentageAction)
|
# simulate that battery has 1% (less than PercentageAction)
|
||||||
|
|
@ -1738,7 +1738,7 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
" abrupt power loss due to battery exhaustion may lead to data"
|
" abrupt power loss due to battery exhaustion may lead to data"
|
||||||
" corruption. The system will perform \"HybridSleep\" instead."
|
" corruption. The system will perform \"HybridSleep\" instead."
|
||||||
" Use AllowRiskyCriticalPowerAction=true to enable support for"
|
" Use AllowRiskyCriticalPowerAction=true to enable support for"
|
||||||
" risky settings.",
|
" risky settings.",
|
||||||
timeout=UP_DAEMON_ACTION_DELAY + 0.5)
|
timeout=UP_DAEMON_ACTION_DELAY + 0.5)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -863,4 +863,3 @@ up_backend_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (UP_TYPE_BACKEND, NULL);
|
return g_object_new (UP_TYPE_BACKEND, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,4 +52,3 @@ void up_device_bluez_update (UpDeviceBluez *bluez,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_BLUEZ_H__ */
|
#endif /* __UP_DEVICE_BLUEZ_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,7 @@ up_device_hid_get_all_data (UpDeviceHid *hid)
|
||||||
rinfo.report_type = rtype;
|
rinfo.report_type = rtype;
|
||||||
rinfo.report_id = HID_REPORT_ID_FIRST;
|
rinfo.report_id = HID_REPORT_ID_FIRST;
|
||||||
while (ioctl (hid->priv->fd, HIDIOCGREPORTINFO, &rinfo) >= 0) {
|
while (ioctl (hid->priv->fd, HIDIOCGREPORTINFO, &rinfo) >= 0) {
|
||||||
for (i = 0; i < rinfo.num_fields; i++) {
|
for (i = 0; i < rinfo.num_fields; i++) {
|
||||||
memset (&finfo, 0, sizeof (finfo));
|
memset (&finfo, 0, sizeof (finfo));
|
||||||
finfo.report_type = rinfo.report_type;
|
finfo.report_type = rinfo.report_type;
|
||||||
finfo.report_id = rinfo.report_id;
|
finfo.report_id = rinfo.report_id;
|
||||||
|
|
|
||||||
|
|
@ -51,4 +51,3 @@ GType up_device_hid_get_type (void);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_HID_H__ */
|
#endif /* __UP_DEVICE_HID_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,3 @@ GType up_device_idevice_get_type (void);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_IDEVICE_H__ */
|
#endif /* __UP_DEVICE_IDEVICE_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,4 +54,3 @@ UpDeviceState up_device_supply_get_state (GUdevDevice *native);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_SUPPLY_H__ */
|
#endif /* __UP_DEVICE_SUPPLY_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,4 +51,3 @@ GType up_device_wup_get_type (void);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_WUP_H__ */
|
#endif /* __UP_DEVICE_WUP_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ device_parent_id (GUdevDevice *dev)
|
||||||
/* Continue walk if the parent is a "hid" device */
|
/* Continue walk if the parent is a "hid" device */
|
||||||
if (g_strcmp0 (subsystem, "hid") == 0) {
|
if (g_strcmp0 (subsystem, "hid") == 0) {
|
||||||
/* if the parent is under /sys/devices/virtual/misc/uhid, the device should be input devices
|
/* if the parent is under /sys/devices/virtual/misc/uhid, the device should be input devices
|
||||||
* and return the path immediately to make sure they belongs to the correct parent.
|
* and return the path immediately to make sure they belongs to the correct parent.
|
||||||
* for example:
|
* for example:
|
||||||
* root@fedora:/sys/devices/virtual/misc/uhid# ls
|
* root@fedora:/sys/devices/virtual/misc/uhid# ls
|
||||||
* 0005:046D:B01A.0005 0005:05AC:0250.000B dev power subsystem uevent */
|
* 0005:046D:B01A.0005 0005:05AC:0250.000B dev power subsystem uevent */
|
||||||
|
|
|
||||||
|
|
@ -39,4 +39,3 @@ gboolean up_input_get_switch_value (UpInput *input);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_INPUT_H__ */
|
#endif /* __UP_INPUT_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,4 +59,3 @@ up_native_get_native_path (GObject *object)
|
||||||
* fallback for completeness */
|
* fallback for completeness */
|
||||||
return g_udev_device_get_sysfs_path (device);
|
return g_udev_device_get_sysfs_path (device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -685,4 +685,3 @@ up_backend_finalize (GObject *object)
|
||||||
|
|
||||||
G_OBJECT_CLASS (up_backend_parent_class)->finalize (object);
|
G_OBJECT_CLASS (up_backend_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,4 +78,3 @@ int up_backend_inhibitor_lock_take (UpBackend *backend,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_BACKEND_H */
|
#endif /* __UP_BACKEND_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -183,4 +183,3 @@ up_config_new (void)
|
||||||
}
|
}
|
||||||
return UP_CONFIG (up_config_object);
|
return UP_CONFIG (up_config_object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ up_device_battery_report (UpDeviceBattery *self,
|
||||||
/* QUIRK:
|
/* QUIRK:
|
||||||
*
|
*
|
||||||
* There is an old bug where some Lenovo machine switched from reporting
|
* There is an old bug where some Lenovo machine switched from reporting
|
||||||
* energy to reporting charge numbers. The code used to react by
|
* energy to reporting charge numbers. The code used to react by
|
||||||
* reloading everything, however, what apparently happens is that the
|
* reloading everything, however, what apparently happens is that the
|
||||||
* *energy* value simply starts being reported through *charge*
|
* *energy* value simply starts being reported through *charge*
|
||||||
* attributes.
|
* attributes.
|
||||||
|
|
|
||||||
|
|
@ -212,4 +212,3 @@ up_device_list_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (UP_TYPE_DEVICE_LIST, NULL);
|
return g_object_new (UP_TYPE_DEVICE_LIST, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,4 +65,3 @@ GPtrArray *up_device_list_get_array (UpDeviceList *list);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_DEVICE_LIST_H */
|
#endif /* __UP_DEVICE_LIST_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -956,4 +956,3 @@ up_history_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (UP_TYPE_HISTORY, NULL);
|
return g_object_new (UP_TYPE_HISTORY, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,4 +91,3 @@ void up_history_set_directory (UpHistory *history,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_HISTORY_H */
|
#endif /* __UP_HISTORY_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,3 @@ const gchar *up_native_get_native_path (GObject *object);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_NATIVE_H__ */
|
#endif /* __UP_NATIVE_H__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,4 +190,3 @@ up_polkit_new (void)
|
||||||
{
|
{
|
||||||
return UP_POLKIT (g_object_new (UP_TYPE_POLKIT, NULL));
|
return UP_POLKIT (g_object_new (UP_TYPE_POLKIT, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,4 +70,3 @@ gboolean up_polkit_is_allowed (UpPolkit *polkit,
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UP_POLKIT_H */
|
#endif /* __UP_POLKIT_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -320,4 +320,3 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
return g_test_run ();
|
return g_test_run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue