power: reset: linkstation-poweroff: prepare for new devices
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 24 Jun 2021 09:18:11 +0000 (11:18 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 13 Aug 2021 17:12:26 +0000 (19:12 +0200)
commite2f471efe1d607a7aff38ce53ec717cebe4283d6
treeba9bbef75f08635a8a591dd35d5d3a6dbd5cd961
parentecdf7e7a1d669bc25e13e21b7beb8814f4636bdc
power: reset: linkstation-poweroff: prepare for new devices

This commit prepare driver for another device support.

New power_off_cfg structure describes two most important things: name of
mdio bus and pointer to register setting function. It allow to add new
device with different mdio bus node and other phy register config.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/linkstation-poweroff.c