ptp: ocp: Use DEFINE_RES_*() in place
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 21 Dec 2023 14:06:07 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2024 12:34:10 +0000 (12:34 +0000)
commit07938d774f189c47b3117c332b0e3d1d1bb50813
treeaa48aff5adcf2ec80277f5fe382fb0608e144096
parent9fb3dc1e9af2162f530d9e905fc9e4f78d7cc1c5
ptp: ocp: Use DEFINE_RES_*() in place

There is no need to have an intermediate functions as DEFINE_RES_*()
macros are represented by compound literals. Just use them in place.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c