]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/beaglelogic.h
beaglelogic: use standard # operator instead of ugly __STRING macro
[libsigrok.git] / src / hardware / beaglelogic / beaglelogic.h
index 12e2f486388da246075d7fd3f4d4c6d9d3cbce11..96713ba707d9b0a647d2a0cd2a7826c2208969e3 100644 (file)
 #define BEAGLELOGIC_H_
 
 #include <fcntl.h>
-
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/errno.h>
 #include <sys/ioctl.h>
-
 #include <stdlib.h>
-
 #include <unistd.h>
 
 /* BeagleLogic device node name */
 #define BEAGLELOGIC_DEV_NODE        "/dev/beaglelogic"
-#define BEAGLELOGIC_SYSFS_ATTR(a)   "/sys/devices/virtual/misc/beaglelogic/"\
-                                       __STRING(a)
+#define BEAGLELOGIC_SYSFS_ATTR(a)   "/sys/devices/virtual/misc/beaglelogic/" #a
 
 /* Reproduced verbatim from beaglelogic.h in the kernel tree until the kernel
  * module hits the mainline. Contains the ABI, so DO NOT TOUCH this section */
@@ -210,4 +206,4 @@ SR_PRIV int beaglelogic_munmap(struct dev_context *devc) {
        return munmap(devc->sample_buf, devc->buffersize);
 }
 
-#endif /* BEAGLELOGIC_H_ */
+#endif