commit | 06d5631f56460917af3d9417ef63811cf0cad9ce | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Thu Jun 21 00:03:41 2012 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Thu Jun 21 00:03:41 2012 +0900 |
tree | a25eee33f3198c4ba75c79b51a3bc85fd10a5f50 | |
parent | 9f65b2b60c42c1e2d885acede4443b53f141c987 [diff] |
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>