[PATCH 1/3] rtc: stmp3xxx: add wdt-accessor function

Shawn Guo shawn.guo at freescale.com
Thu Dec 8 19:27:24 EST 2011


Hi Wolfram,

On Thu, Dec 08, 2011 at 06:19:41PM +0100, Wolfram Sang wrote:
> @@ -0,0 +1,15 @@
> +/*
> + * stmp3xxx_rtc_wdt.h
> + *
> + * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K.
> + *
> + * This file is released under the GPLv2.
> + */
> +#ifndef __LINUX_STMP3XXX_RTC_WDT_H
> +#define __LINUX_STMP3XXX_RTC_WDT_H
> +
> +struct stmp3xxx_wdt_pdata {
> +	void (*wdt_set_timeout)(struct device *dev, u32 timeout);

Passing callback with platform_data will make device tree migration
difficult.  Is there any possibility we can save the callback here?

Regards,
Shawn

> +};
> +
> +#endif /* __LINUX_STMP3XXX_RTC_WDT_H */
> -- 
> 1.7.7.3




More information about the linux-arm-kernel mailing list