power: reset: at91-reset: introduce args member in at91_reset_data
authorClaudiu.Beznea@microchip.com <Claudiu.Beznea@microchip.com>
Tue, 21 Jan 2020 10:03:33 +0000 (10:03 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 8 Mar 2020 18:38:04 +0000 (19:38 +0100)
commit25b80b7d5a5b41cb52db441e37a04d71e7196f60
treee8c35db15b77851dcfe1371e9037762622acf460
parenta5bbad258a9ec41df4a158c828b9ef0af7955854
power: reset: at91-reset: introduce args member in at91_reset_data

Introduce args member in struct at91_reset_data. It stores the value
that needs to be written in mode register so that the reboot actions
to happen. With these changes samx7_restart() could be removed.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-reset.c