Re: [PATCH] Add ALS drivers for the apds9802als
From: Joe Perches
Date: Tue Sep 28 2010 - 12:52:42 EST
On Tue, 2010-09-28 at 16:56 +0100, Alan Cox wrote:
> drivers/misc/apds9802als.c | 308 ++++++++++++++++++++++++++++++++++++++++++++
[]
> +static int apds9802als_probe(struct i2c_client *client,
> + const struct i2c_device_id *id)
> +{
> + int res;
> + struct als_data *data;
> +
> + data = kzalloc(sizeof(struct als_data), GFP_KERNEL);
> + if (data == NULL) {
> + dev_err(&client->dev, "Memory allocation failed");
missing newline.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/