]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: make it possible to use struct ubi_device in debug.h
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 May 2011 13:38:06 +0000 (16:38 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 1 Jun 2011 08:21:52 +0000 (11:21 +0300)
commit18073733247dc0c31e07f3a87f3267fe8d7e7022
tree83e833c46b2e815731d5a6628796c02e854f493f
parent27a0f2a37aa46cb0174decddf8830715e5f1645a
UBI: make it possible to use struct ubi_device in debug.h

Current layout does not allow us to add inline functions to debug.h which use
the 'struct ubi_device' object, because it is undefined there. Move
'#include "debug.h"' in "ubi.h" down so to make 'struct ubi_device" be defined.
Additionally, this makes it possible to remove a bunch of forward declarations
in "debug.h". This is a preparation to the next patch.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/ubi.h