aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/touchpad.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/touchpad.h b/include/touchpad.h
index d168fc0c..8e2d63f8 100644
--- a/include/touchpad.h
+++ b/include/touchpad.h
@@ -59,12 +59,12 @@
/**
* @brief Struct used for calibration
*/
-struct cal {
+typedef struct cal_t {
float xm;
float ym;
float xn;
float yn;
-};
+} cal_t;
/*===========================================================================*/
/* External declarations. */
@@ -88,8 +88,8 @@ void tpCalibrate(void);
#endif
#if TOUCHPAD_STORE_CALIBRATION
- extern void lld_tpWriteCalibration(struct cal cal);
- extern struct cal lld_tpReadCalibration(void);
+ extern void lld_tpWriteCalibration(struct cal_t cal);
+ extern struct cal_t lld_tpReadCalibration(void);
#endif
#ifdef __cplusplus