gpio: mpc8xxx: don't allow input-only pins to be output for MPC5121
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 13 Dec 2011 09:12:48 +0000 (10:12 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 13 Dec 2011 18:14:35 +0000 (11:14 -0700)
commit28538df0389a59ede9ccd6f327d2031f0044db87
tree55053eaeb036735c62948c92c78febc284341900
parent4d052213ff8f71a4a70fc4eed71b773cfde51fcf
gpio: mpc8xxx: don't allow input-only pins to be output for MPC5121

Add a 5121-custom reject if an input-only pin is requested to be output
(see 18.3.1.1 in the refman). Also, rewrite mach-specific quirk setup to
consume less lines which scales better.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
[grant.likely: Fixed build error]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-mpc8xxx.c