diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-21 05:24:36 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-10-06 18:17:37 +0200 |
commit | fe9ce3a79aa07e59dea0dbfd61db3a0c9dd3e094 (patch) | |
tree | ddcb69da0712413fea5fd1f0071a129fa73090a8 /samsung-ipc/devices/ipc_devices.c | |
parent | 60c99dd579c08d16e591b2701f3753b30f641693 (diff) | |
download | hardware_replicant_libsamsung-ipc-fe9ce3a79aa07e59dea0dbfd61db3a0c9dd3e094.tar.gz hardware_replicant_libsamsung-ipc-fe9ce3a79aa07e59dea0dbfd61db3a0c9dd3e094.tar.bz2 hardware_replicant_libsamsung-ipc-fe9ce3a79aa07e59dea0dbfd61db3a0c9dd3e094.zip |
modems: xmm626: abstract xmm626_{hsic/mipi}_modem_data_send
The only difference between xmm626_hsic_nv_data_send and
xmm626_mipi_nv_data_send is the use of xmm626_hsic_modem_data_send
instead of xmm626_mipi_modem_data_send.
Abstracting these functions would enable to use a common
xmm626_nv_data_send.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ipc/devices/ipc_devices.c')
-rw-r--r-- | samsung-ipc/devices/ipc_devices.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/samsung-ipc/devices/ipc_devices.c b/samsung-ipc/devices/ipc_devices.c index 91663f6..edf3b5a 100644 --- a/samsung-ipc/devices/ipc_devices.c +++ b/samsung-ipc/devices/ipc_devices.c @@ -22,6 +22,8 @@ #include <samsung-ipc.h> #include "devices/ipc_devices.h" +#include "modems/xmm626/xmm626_hsic.h" +#include "modems/xmm626/xmm626_mipi.h" struct ipc_device_desc ipc_devices[] = { { @@ -73,6 +75,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &galaxys2_handlers, .gprs_specs = &galaxys2_gprs_specs, .nv_data_specs = &galaxys2_nv_data_specs, + .modem_driver_ops = &xmm626_mipi_modem_driver_ops, }, { .name = "galaxys2", @@ -83,6 +86,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &galaxys2_handlers, .gprs_specs = &galaxys2_gprs_specs, .nv_data_specs = &galaxys2_nv_data_specs, + .modem_driver_ops = &xmm626_hsic_modem_driver_ops, }, { .name = "maguro", @@ -93,6 +97,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &maguro_handlers, .gprs_specs = &maguro_gprs_specs, .nv_data_specs = &maguro_nv_data_specs, + .modem_driver_ops = &xmm626_mipi_modem_driver_ops, }, { .name = "piranha", @@ -103,6 +108,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &piranha_handlers, .gprs_specs = &piranha_gprs_specs, .nv_data_specs = &piranha_nv_data_specs, + .modem_driver_ops = &xmm626_mipi_modem_driver_ops, }, { .name = "piranha", @@ -113,6 +119,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &piranha_handlers, .gprs_specs = &piranha_gprs_specs, .nv_data_specs = &piranha_nv_data_specs, + .modem_driver_ops = &xmm626_mipi_modem_driver_ops, }, { .name = "piranha", @@ -123,6 +130,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &piranha_handlers, .gprs_specs = &piranha_gprs_specs, .nv_data_specs = &piranha_nv_data_specs, + .modem_driver_ops = &xmm626_mipi_modem_driver_ops, }, { .name = "i9300", @@ -133,6 +141,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &i9300_handlers, .gprs_specs = &i9300_gprs_specs, .nv_data_specs = &i9300_nv_data_specs, + .modem_driver_ops = &xmm626_hsic_modem_driver_ops, }, { .name = "n7100", @@ -143,6 +152,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &n7100_handlers, .gprs_specs = &n7100_gprs_specs, .nv_data_specs = &n7100_nv_data_specs, + .modem_driver_ops = &xmm626_hsic_modem_driver_ops, }, { .name = "n5100", @@ -153,6 +163,7 @@ struct ipc_device_desc ipc_devices[] = { .handlers = &n5100_handlers, .gprs_specs = &n5100_gprs_specs, .nv_data_specs = &n5100_nv_data_specs, + .modem_driver_ops = &xmm626_hsic_modem_driver_ops, }, }; |