From 936e27f19712572d5a1c506dc0ef59aad8743fc4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 10 Nov 2012 13:32:46 +0100 Subject: [PATCH] radioshack-dmm: Use new file naming conventions. --- hardware/radioshack-dmm/Makefile.am | 4 ++-- hardware/radioshack-dmm/api.c | 2 +- hardware/radioshack-dmm/{radioshack.c => protocol.c} | 2 +- hardware/radioshack-dmm/{radioshack-dmm.h => protocol.h} | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename hardware/radioshack-dmm/{radioshack.c => protocol.c} (99%) rename hardware/radioshack-dmm/{radioshack-dmm.h => protocol.h} (94%) diff --git a/hardware/radioshack-dmm/Makefile.am b/hardware/radioshack-dmm/Makefile.am index 99091aa1..cbccb88b 100644 --- a/hardware/radioshack-dmm/Makefile.am +++ b/hardware/radioshack-dmm/Makefile.am @@ -25,8 +25,8 @@ noinst_LTLIBRARIES = libsigrokhwradioshackdmm.la libsigrokhwradioshackdmm_la_SOURCES = \ api.c \ - radioshack.c \ - radioshack-dmm.h + protocol.c \ + protocol.h libsigrokhwradioshackdmm_la_CFLAGS = \ -I$(top_srcdir) diff --git a/hardware/radioshack-dmm/api.c b/hardware/radioshack-dmm/api.c index a920d3a9..7a6f0339 100644 --- a/hardware/radioshack-dmm/api.c +++ b/hardware/radioshack-dmm/api.c @@ -26,7 +26,7 @@ #include #include "libsigrok.h" #include "libsigrok-internal.h" -#include "radioshack-dmm.h" +#include "protocol.h" static const int hwopts[] = { SR_HWOPT_CONN, diff --git a/hardware/radioshack-dmm/radioshack.c b/hardware/radioshack-dmm/protocol.c similarity index 99% rename from hardware/radioshack-dmm/radioshack.c rename to hardware/radioshack-dmm/protocol.c index cb77339c..96342cec 100644 --- a/hardware/radioshack-dmm/radioshack.c +++ b/hardware/radioshack-dmm/protocol.c @@ -25,7 +25,7 @@ #include #include "libsigrok.h" #include "libsigrok-internal.h" -#include "radioshack-dmm.h" +#include "protocol.h" /* Byte 1 of the packet, and the modes it represents */ #define IND1_HZ 0x80 diff --git a/hardware/radioshack-dmm/radioshack-dmm.h b/hardware/radioshack-dmm/protocol.h similarity index 94% rename from hardware/radioshack-dmm/radioshack-dmm.h rename to hardware/radioshack-dmm/protocol.h index 5d13e7f8..833cc458 100644 --- a/hardware/radioshack-dmm/radioshack-dmm.h +++ b/hardware/radioshack-dmm/protocol.h @@ -18,8 +18,8 @@ * along with this program. If not, see . */ -#ifndef LIBSIGROK_HARDWARE_RADIOSHACK_DMM_RADIOSHACK_DMM_H -#define LIBSIGROK_HARDWARE_RADIOSHACK_DMM_RADIOSHACK_DMM_H +#ifndef LIBSIGROK_HARDWARE_RADIOSHACK_DMM_PROTOCOL_H +#define LIBSIGROK_HARDWARE_RADIOSHACK_DMM_PROTOCOL_H /* Message logging helpers with driver-specific prefix string. */ #define DRIVER_LOG_DOMAIN "radioshack-dmm: "