presence: Use shared JSON config file finding & loading header
Use the shared JSON config determination header for loading its
JSON configuration file.
Tested:
run phosphor-fan-presence-tach can find and load config.json from
/usr/share/phosphor-fan-presence/presence and
/etc/phosphor-fan-presence/presence/ in witherspoon qemu
Change-Id: I5c4fdf7d96de7c956ca24b4a5751911cc1bf1f03
Signed-off-by: Jolie Ku <jolie_ku@wistron.com>
diff --git a/presence/tach_detect.cpp b/presence/tach_detect.cpp
index 1c1dcf9..41af199 100644
--- a/presence/tach_detect.cpp
+++ b/presence/tach_detect.cpp
@@ -15,7 +15,7 @@
*/
#include "config.h"
#ifdef PRESENCE_USE_JSON
-#include "json_config.hpp"
+#include "json_parser.hpp"
#else
#include "generated.hpp"
#endif