drm/nouveau/bios: fix DCB v1.5 parsing
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sat, 17 Nov 2012 20:33:15 +0000 (21:33 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 18 Nov 2012 22:54:20 +0000 (08:54 +1000)
commit3bb076af2ae571a48465972d5747175cec3564cd
treee12b91324bd928305d2a113faa569cfdcaa6c2dd
parentd9c390561d1c4e520773e62781bbf89bb6845353
drm/nouveau/bios: fix DCB v1.5 parsing

memcmp->nv_strncmp conversion, in addition to name change, should have
inverted the return value.

But nv_strncmp does not act like strncmp - it does not check for string
terminator, returns true/false instead of -1/0/1 and has different
parameters order.

Let's rename it to nv_memcmp and let it act like memcmp.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/core/object.h
drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c