]> git.baikalelectronics.ru Git - kernel.git/commit
sh: pfc: Verify pin type encoding size at build time.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 20 Jun 2012 15:03:41 +0000 (00:03 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 20 Jun 2012 15:03:41 +0000 (00:03 +0900)
commit31f4bd5a7aefded937c4e04f66aa5e8fdd7d7aa9
treea25eee33f3198c4ba75c79b51a3bc85fd10a5f50
parent913eb3867fb11cff4510673792f9d05fe5181b45
sh: pfc: Verify pin type encoding size at build time.

The encoding is tightly packed, and future changes (such as
pinconf-generic support) can easily lead to a situation where we violate
the encoding constraints and trample data bit/reg bits. This plugs in
some sanity checks by way of a BUILD_BUG_ON() to blow up if we fail to
fit.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/pfc.c
include/linux/sh_pfc.h