[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181029134100.GD28520@bombadil.infradead.org>
Date: Mon, 29 Oct 2018 06:41:00 -0700
From: Matthew Wilcox <willy@...radead.org>
To: Vitor soares <vitor.soares@...opsys.com>
Cc: boris.brezillon@...tlin.com, wsa@...-dreams.de,
linux-i2c@...r.kernel.org, corbet@....net,
linux-doc@...r.kernel.org, gregkh@...uxfoundation.org,
arnd@...db.de, psroka@...ence.com, agolec@...ence.com,
adouglas@...ence.com, bfolta@...ence.com, dkos@...ence.com,
alicja@...ence.com, cwronka@...ence.com, sureshp@...ence.com,
rafalc@...ence.com, thomas.petazzoni@...tlin.com, nm@...com,
robh+dt@...nel.org, pawel.moll@....com, mark.rutland@....com,
ijc+devicetree@...lion.org.uk, galak@...eaurora.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
geert@...ux-m68k.org, linus.walleij@...aro.org,
Xiang.Lin@...aptics.com, linux-gpio@...r.kernel.org,
nsekhar@...com, pgaj@...ence.com, peda@...ntia.se,
mshettel@...eaurora.org, swboyd@...omium.org,
joao.pinto@...opsys.com, luis.oliveira@...opsys.com,
manuel.abreu@...opsys.com, gustavo.pimentel@...opsys.com
Subject: Re: [PATCH 1/3] i3c: master: Add driver for Synopsys DesignWare IP
On Mon, Oct 29, 2018 at 10:06:56AM +0000, Vitor soares wrote:
> +config DW_I3C_MASTER
> + tristate "Synospsys DesignWare I3C master driver"
> + depends on I3C
> + depends on !(ALPHA || PARISC)
why?
> + help
> + Support·for·Synopsys·DesignWare·MIPI·I3C·Controller.
These strange characters (displayed as a centred dot on my terminal)
should probably be spaces.
> +static struct dw_i3c_xfer *
> +dw_i3c_master_alloc_xfer(struct dw_i3c_master *master, unsigned int ncmds)
> +{
> + struct dw_i3c_xfer *xfer;
> +
> + xfer = kzalloc(sizeof(*xfer) + (ncmds * sizeof(*xfer->cmds)),
> + GFP_KERNEL);
You should be using struct_size() here.
Powered by blists - more mailing lists