trivial: fix some trailing whitespace problems across the project

This commit is contained in:
Mario Limonciello 2021-04-08 12:09:18 -05:00 committed by Richard Hughes
parent 13524af202
commit 1f9c035788
14 changed files with 8 additions and 17 deletions

View File

@ -26,4 +26,3 @@ printf ' ]\n' >> $OUT
printf ' }\n' >> $OUT printf ' }\n' >> $OUT
printf ' }\n' >> $OUT printf ' }\n' >> $OUT
printf '}\n' >> $OUT printf '}\n' >> $OUT

View File

@ -22,4 +22,3 @@ void fwupd_device_to_json (FwupdDevice *device,
JsonBuilder *builder); JsonBuilder *builder);
G_END_DECLS G_END_DECLS

View File

@ -17,4 +17,3 @@ void fwupd_plugin_to_json (FwupdPlugin *plugin,
JsonBuilder *builder); JsonBuilder *builder);
G_END_DECLS G_END_DECLS

View File

@ -18,4 +18,3 @@ void fwupd_release_to_json (FwupdRelease *release,
JsonBuilder *builder); JsonBuilder *builder);
G_END_DECLS G_END_DECLS

View File

@ -51,4 +51,3 @@ void fwupd_security_attr_to_json (FwupdSecurityAttr *self,
JsonBuilder *builder); JsonBuilder *builder);
G_END_DECLS G_END_DECLS

View File

@ -162,4 +162,3 @@ main (int argc, char **argv)
g_test_add_func ("/dfu/target(DfuSe}", fu_dfu_target_dfuse_func); g_test_add_func ("/dfu/target(DfuSe}", fu_dfu_target_dfuse_func);
return g_test_run (); return g_test_run ();
} }

View File

@ -248,7 +248,7 @@ fu_elantp_hid_device_setup (FuDevice *device, GError **error)
ic_type); ic_type);
return FALSE; return FALSE;
} }
/* The ic_page_count is based on 64 bytes/page. */ /* The ic_page_count is based on 64 bytes/page. */
fu_device_set_firmware_size (device, (guint64) self->ic_page_count * (guint64) 64); fu_device_set_firmware_size (device, (guint64) self->ic_page_count * (guint64) 64);
@ -389,7 +389,7 @@ fu_elantp_hid_device_detach (FuDevice *device, GError **error)
guint16 ic_type; guint16 ic_type;
guint8 buf[2] = { 0x0 }; guint8 buf[2] = { 0x0 };
guint16 tmp; guint16 tmp;
/* sanity check */ /* sanity check */
if (fu_device_has_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER)) { if (fu_device_has_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER)) {
g_debug ("in bootloader mode, reset IC"); g_debug ("in bootloader mode, reset IC");
@ -401,7 +401,7 @@ fu_elantp_hid_device_detach (FuDevice *device, GError **error)
return FALSE; return FALSE;
g_usleep (ELANTP_DELAY_RESET * 1000); g_usleep (ELANTP_DELAY_RESET * 1000);
} }
/* get OSM version */ /* get OSM version */
if (!fu_elantp_hid_device_read_cmd (self, ETP_CMD_I2C_OSM_VERSION, buf, sizeof(buf), error)) { if (!fu_elantp_hid_device_read_cmd (self, ETP_CMD_I2C_OSM_VERSION, buf, sizeof(buf), error)) {
g_prefix_error (error, "failed to read OSM version: "); g_prefix_error (error, "failed to read OSM version: ");
@ -438,7 +438,7 @@ fu_elantp_hid_device_detach (FuDevice *device, GError **error)
} else { } else {
self->fw_page_size = 128; self->fw_page_size = 128;
} }
if (!fu_elantp_hid_device_write_cmd (self, if (!fu_elantp_hid_device_write_cmd (self,
ETP_CMD_I2C_IAP_TYPE, ETP_CMD_I2C_IAP_TYPE,
self->fw_page_size / 2, self->fw_page_size / 2,

View File

@ -147,7 +147,7 @@ fu_synaprom_device_set_version (FuSynapromDevice *self,
{ {
g_autofree gchar *str = NULL; g_autofree gchar *str = NULL;
/* We decide to skip 10.02.xxxxxx firmware, so we force the minor version from 0x02 /* We decide to skip 10.02.xxxxxx firmware, so we force the minor version from 0x02
** to 0x01 to make the devices with 0x02 minor version firmware allow to be updated ** to 0x01 to make the devices with 0x02 minor version firmware allow to be updated
** back to minor version 0x01. */ ** back to minor version 0x01. */
if (vmajor == 0x0a && vminor == 0x02) { if (vmajor == 0x0a && vminor == 0x02) {

View File

@ -11,4 +11,3 @@
#define FU_TYPE_SYNAPTICS_RMI_PS2_DEVICE (fu_synaptics_rmi_ps2_device_get_type ()) #define FU_TYPE_SYNAPTICS_RMI_PS2_DEVICE (fu_synaptics_rmi_ps2_device_get_type ())
G_DECLARE_FINAL_TYPE (FuSynapticsRmiPs2Device, fu_synaptics_rmi_ps2_device, FU, SYNAPTICS_RMI_PS2_DEVICE, FuSynapticsRmiDevice) G_DECLARE_FINAL_TYPE (FuSynapticsRmiPs2Device, fu_synaptics_rmi_ps2_device, FU, SYNAPTICS_RMI_PS2_DEVICE, FuSynapticsRmiDevice)

View File

@ -11,4 +11,4 @@
#define FU_TYPE_THUNDERBOLT_FIRMWARE_UPDATE (fu_thunderbolt_firmware_update_get_type ()) #define FU_TYPE_THUNDERBOLT_FIRMWARE_UPDATE (fu_thunderbolt_firmware_update_get_type ())
G_DECLARE_FINAL_TYPE (FuThunderboltFirmwareUpdate, fu_thunderbolt_firmware_update, FU,THUNDERBOLT_FIRMWARE_UPDATE, FuThunderboltFirmware) G_DECLARE_FINAL_TYPE (FuThunderboltFirmwareUpdate, fu_thunderbolt_firmware_update, FU,THUNDERBOLT_FIRMWARE_UPDATE, FuThunderboltFirmware)
FuThunderboltFirmwareUpdate *fu_thunderbolt_firmware_update_new (void); FuThunderboltFirmwareUpdate *fu_thunderbolt_firmware_update_new (void);

View File

@ -251,7 +251,7 @@ fu_uefi_get_esp_path_for_os (FuDevice *device, const gchar *base)
g_debug ("Using ID_LIKE key from os-release"); g_debug ("Using ID_LIKE key from os-release");
return g_steal_pointer (&id_like_path); return g_steal_pointer (&id_like_path);
} }
} }
/* try to fallback to use UEFI removable path if ID_LIKE path doesn't exist */ /* try to fallback to use UEFI removable path if ID_LIKE path doesn't exist */
if (fu_device_get_metadata_boolean (device, "FallbacktoRemovablePath")) { if (fu_device_get_metadata_boolean (device, "FallbacktoRemovablePath")) {
esp_path = g_build_filename (base, "EFI", "boot", NULL); esp_path = g_build_filename (base, "EFI", "boot", NULL);

View File

@ -188,7 +188,7 @@ fu_vli_usbhub_firmware_parse (FuFirmware *firmware,
g_prefix_error (error, "failed to get Q7/Q8 offset mapping: "); g_prefix_error (error, "failed to get Q7/Q8 offset mapping: ");
return FALSE; return FALSE;
} }
if (!fu_common_read_uint8_safe (buf, bufsz, adr_ofs + 0x2000 + 0x05, if (!fu_common_read_uint8_safe (buf, bufsz, adr_ofs + 0x2000 + 0x05,
&tmp, error)) { &tmp, error)) {
g_prefix_error (error, "failed to get offset version: "); g_prefix_error (error, "failed to get offset version: ");
return FALSE; return FALSE;

View File

@ -106,4 +106,3 @@ main (int argc, char **argv)
g_test_add_func ("/wac/firmware{xml}", fu_wac_firmware_xml_func); g_test_add_func ("/wac/firmware{xml}", fu_wac_firmware_xml_func);
return g_test_run (); return g_test_run ();
} }

View File

@ -80,4 +80,3 @@ fu_engine_update_motd (FuEngine *self, GError **error)
_("Run `fwupdmgr get-upgrades` for more information.")); _("Run `fwupdmgr get-upgrades` for more information."));
return g_file_set_contents (target, str->str, str->len, error); return g_file_set_contents (target, str->str, str->len, error);
} }