Re: [PATCH v2 1/3] mfd: tps6586x: add version detection

From: Mark Brown
Date: Mon Dec 02 2013 - 07:21:49 EST


On Sun, Dec 01, 2013 at 04:59:13PM +0100, Stefan Agner wrote:

> +int tps6586x_get_version(struct device *dev)
> +{
> + struct tps6586x *tps6586x = dev_get_drvdata(dev);
> +
> + return tps6586x->version;
> +}
> +EXPORT_SYMBOL_GPL(tps6586x_get_version);

May as well make this a static inline in the header.

Attachment: signature.asc
Description: Digital signature