Skip to contentSkip to conversation

xf86drm: Fix indentation

PATCH In review Thierry Reding 2 participants 4 messages Dec 23, 2016 – Jan 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 xf86drm: Fix indentation

From: Thierry Reding <[email protected]>

libdrm uses spaces for indentation. Fix the two inconsistent lines in this file.

---
 xf86drm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xf86drm.c +2 -2
index b5eeeb090ecb..ac59bf513d6c 100644
@@ -2904,7 +2904,7 @@ static int drmParseSubsystemType(int maj, int min)
 
     return -EINVAL;
 #elif defined(__OpenBSD__)
-	return DRM_BUS_PCI;
+    return DRM_BUS_PCI;
 #else
 #warning "Missing implementation of drmParseSubsystemType"
     return -EINVAL;
@@ -3411,7 +3411,7 @@ int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device)
     closedir(sysdir);
     free(local_devices);
     if (*device == NULL)
-	return -ENODEV;
+        return -ENODEV;
     return 0;
 
 free_devices:
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 Add .editorconfig

From: Thierry Reding <[email protected]>

This encodes the indentation style for libdrm and can be used with various editors. See http://editorconfig.org for instructions.

---
 .editorconfig | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 .editorconfig
.editorconfig new file +19 -0
new file mode 100644
index 000000000000..893b7be082e4
@@ -0,0 +1,19 @@
+# To use this config with your editor, follow the instructions at:
+# http://editorconfig.org
+
+root = true
+
+[*]
+charset = utf-8
+insert_final_newline = true
+
+[*.{c,h}]
+indent_style = space
+indent_size = 4
+
+[{Makefile.*,*.mk}]
+indent_style = tab
+
+[*.m4]
+indent_style = space
+indent_size = 2
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH libdrm 2/2] Add .editorconfig

Quoted 5 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This encodes the indentation style for libdrm and can be used with various editors. See http://editorconfig.org for instructions.

Thanks for these and the usb/platform work Thierry.

We might want more a few more .editorconfig files, for ./intel/ and others but that will happen in due time.

These two, and 1/3 are

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Re: [PATCH libdrm 2/2] Add .editorconfig

Quoted 6 lines · Emil Velikov
Quoted 5 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This encodes the indentation style for libdrm and can be used with various editors. See http://editorconfig.org for instructions.

Quoted 7 lines

Thanks for these and the usb/platform work Thierry.

We might want more a few more .editorconfig files, for ./intel/ and others but that will happen in due time.

These two, and 1/3 are

I've pushed these two patches to master.

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel