summaryrefslogtreecommitdiff
path: root/nic3com.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-05-12 15:38:55 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-05-12 15:38:55 +0000
commita5fe59a8d3017e5410bd7f2c76c4e027f11cb2a9 (patch)
tree5ef84e3f82ae6d3d7643bc85faafe63eff3256a9 /nic3com.c
parent56a19d05ee4123a77b93fb0106f56003204135fe (diff)
downloadflashrom-a5fe59a8d3017e5410bd7f2c76c4e027f11cb2a9.tar.gz
Use helper functions chip_{read,write}[bwl] to access flash chips.
The semantic patch I used in r418 to make the original conversion to accessor functions was missing one isomorphism: a[b] <=> *(a+b) The semantic patcher Coccinelle was used to create this patch. Semantic patch follows: @@ typedef uint8_t; expression a; volatile uint8_t *b; @@ - b[a] + *(b + a) @@ expression a; volatile uint8_t *b; @@ - *(b) = (a); + chip_writeb(a, b); @@ volatile uint8_t *b; @@ - *(b) + chip_readb(b) @@ type T; T b; @@ ( chip_readb | chip_writeb ) (..., - (T) - (b) + b ) Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@498 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'nic3com.c')
0 files changed, 0 insertions, 0 deletions