summaryrefslogtreecommitdiff
path: root/target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2014-03-05 23:19:25 +0000
committerZoltan Herpai <wigyori@uid0.hu>2014-03-05 23:19:25 +0000
commit301baf34ddbc838b61dfd8564b27a440f0b85e5a (patch)
treee676718f90241c41d5dc1da4b8a94eba0ab3fddd /target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch
parent6892ed8193e8a195a6b5302bb55b24acdbf79abc (diff)
downloadmtk-20170518-301baf34ddbc838b61dfd8564b27a440f0b85e5a.zip
mtk-20170518-301baf34ddbc838b61dfd8564b27a440f0b85e5a.tar.gz
mtk-20170518-301baf34ddbc838b61dfd8564b27a440f0b85e5a.tar.bz2
sunxi: deprecate 3.12 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39780
Diffstat (limited to 'target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch')
-rw-r--r--target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch b/target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch
deleted file mode 100644
index 4dba064..0000000
--- a/target/linux/sunxi/patches-3.12/100-2-fix-off-by-one-masks.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 04609953e11377c0705b0aba5c25ebdcbb9e4aa7 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <emilio@elopez.com.ar>
-Date: Thu, 5 Sep 2013 19:47:20 -0300
-Subject: [PATCH] clk: sunxi: factors: fix off-by-one masks
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The previous code would generate one bit too long masks, and was
-needlessly complicated. This patch replaces it by simpler code that can
-generate the masks correctly.
-
-Signed-off-by: Emilio López <emilio@elopez.com.ar>
----
- drivers/clk/sunxi/clk-factors.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c
-index 88523f9..5687ac9 100644
---- a/drivers/clk/sunxi/clk-factors.c
-+++ b/drivers/clk/sunxi/clk-factors.c
-@@ -40,7 +40,7 @@ struct clk_factors {
-
- #define to_clk_factors(_hw) container_of(_hw, struct clk_factors, hw)
-
--#define SETMASK(len, pos) (((-1U) >> (31-len)) << (pos))
-+#define SETMASK(len, pos) (((1U << (len)) - 1) << (pos))
- #define CLRMASK(len, pos) (~(SETMASK(len, pos)))
- #define FACTOR_GET(bit, len, reg) (((reg) & SETMASK(len, bit)) >> (bit))
-
---
-1.8.5.1
-