[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140217081104.GM5018@intel.com>
Date: Mon, 17 Feb 2014 10:11:04 +0200
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: linux-i2c@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-kernel@...r.kernel.org, Benson Leung <bleung@...omium.org>
Subject: Re: [PATCH] i2c: designware-pci: Add Baytrail PCI IDs
On Sat, Feb 15, 2014 at 04:27:37PM +0100, Wolfram Sang wrote:
> On Tue, Feb 04, 2014 at 04:31:19PM +0200, Mika Westerberg wrote:
> > Intel Baytrail I2C controllers can be enumerated from PCI as well as from
> > ACPI. In order to support this add the Baytrail PCI IDs to the driver.
> >
> > Signed-off-by: Mika Westerberg <mika.westerberg@...ux.intel.com>
>
> Basically fine, one question:
>
> > - snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci-%d",
> > - adap->nr);
> > +
> > + if (adap->nr < 0)
> > + snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci");
> > + else
> > + snprintf(adap->name, sizeof(adap->name),
> > + "i2c-designware-pci-%d", adap->nr);
>
> Maybe we just drop the "-%d" suffix entirely?
I suggested that already when Benson (CC'd) sent his Haswell patch series.
His opinion was that it is useful in certain cases to know the bus number
(like grepping /proc/interrupts, IIRC).
For Baytrail we don't need it so if nobody objects, I'll just go ahead and
drop it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists