Re: [PATCH 4/4]-V3 Add MFD driver for TPS6507x family of multi-function chips and move TPS6507x regulator driver from being stand-alone to using the MFD driver.

From: Kevin Hilman
Date: Wed Apr 21 2010 - 14:23:21 EST


Todd Fischer <todd.fischer@xxxxxxxxxxxx> writes:

> Add MFD driver for TPS6507x family of multi-function chips. Move TPS6507x
> regulator driver from being stand-alone driver to using the MFD TPS6507x driver.
>
> Signed-off-by: Todd Fischer <todd.fischer@xxxxxxxxxxxx>

[...]

Not sure whose tree this is queued in currently, but testing with
current davinci git, I had a compile problem...

> diff --git a/drivers/mfd/tps6507x.c b/drivers/mfd/tps6507x.c
> new file mode 100644
> index 0000000..5bca398
> --- /dev/null
> +++ b/drivers/mfd/tps6507x.c
> @@ -0,0 +1,155 @@
> +/*
> + * tps6507x.c -- TPS6507x chip family multi-function driver
> + *
> + * Copyright (c) 2010 RidgeRun (todd.fischer@xxxxxxxxxxxx)
> + *
> + * Author: Todd Fischer
> + * todd.fischer@xxxxxxxxxxxx
> + *
> + * Credits:
> + *
> + * Using code from wm831x-*.c, wm8400-core, Wolfson Microelectronics PLC.
> + *
> + * For licencing details see kernel-base/COPYING
> + *
> + */
> +
> +#include <linux/module.h>
> +#include <linux/moduleparam.h>
> +#include <linux/init.h>
> +#include <linux/i2c.h>
> +#include <linux/mfd/core.h>
> +#include <linux/mfd/tps6507x.h>

Need an #include <linux/slab.h> here for kfree and kzalloc

Kevin
--
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/