aboutsummaryrefslogtreecommitdiff
path: root/board/friendlyarm
diff options
context:
space:
mode:
authorIgor Prusov2023-11-09 20:10:04 +0300
committerTom Rini2023-11-16 18:59:58 -0500
commit13248d66aeea02afc120ba83075e1af32cefd592 (patch)
tree3b74811fd4b0b28ed73e696af95965c97e162ce0 /board/friendlyarm
parent35425507b3253bb1e08110f67e130e7c9c272cf7 (diff)
treewide: use linux/time.h for time conversion defines
Now that we have time conversion defines from in time.h there is no need for each driver to define their own version. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com> Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com> # tegra Reviewed-by: Eugen Hristev <eugen.hristev@collabora.com> #at91 Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> #qcom geni Reviewed-by: Stefan Bosch <stefan_b@posteo.net> #nanopi2 Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'board/friendlyarm')
-rw-r--r--board/friendlyarm/nanopi2/onewire.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/friendlyarm/nanopi2/onewire.c b/board/friendlyarm/nanopi2/onewire.c
index 56f0f2dfceb..4f0b1e33c2d 100644
--- a/board/friendlyarm/nanopi2/onewire.c
+++ b/board/friendlyarm/nanopi2/onewire.c
@@ -11,16 +11,13 @@
#include <asm/arch/clk.h>
#include <asm/arch/pwm.h>
#include <i2c.h>
+#include <linux/time.h>
#include <irq_func.h>
#include <asm/arch/nexell.h>
#include <asm/arch/nx_gpio.h>
-#ifndef NSEC_PER_SEC
-#define NSEC_PER_SEC 1000000000L
-#endif
-
#define SAMPLE_BPS 9600
#define SAMPLE_IN_US 101 /* (1000000 / BPS) */