[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] versatilepb: add i2c support
From: |
Oskar Andero |
Subject: |
Re: [Qemu-devel] [PATCH] versatilepb: add i2c support |
Date: |
Mon, 9 Apr 2012 21:56:37 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 18:45 Thu 05 Apr , Peter Maydell wrote:
> On 2 April 2012 21:17, Oskar Andero <address@hidden> wrote:
> > Signed-off-by: Oskar Andero <address@hidden>
> > ---
> > hw/versatilepb.c | 80
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > 1 files changed, 80 insertions(+), 0 deletions(-)
>
> This is just a cut-n-paste of the i2c device in hw/realview.c.
> Instead of duplicating the code we should pull it out into
> its own source file, give it a name which doesn't have 'realview'
> in it (since it's the same thing in all these boards) and
> then use that new device in all the boards which have it.
Yes, you are absolutely right. I will create a new file, e.g.
i2c_generic.c or something.
Thanks,
Oskar