Merge branch 'ipa-device-pointer-access'
authorDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 11:44:41 +0000 (11:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 11:44:41 +0000 (11:44 +0000)
commit86a628bec2017ae5a6985ee01a014d18686df747
tree9a359a6e46e0755c1a10eb499395d4b6ae08e415
parentb78fcd0a36a7d11cc71e7ee56bb27e71aea8464a
parent5245f4fd28d126cc13e32e77abc8a8fd287167b0
Merge branch 'ipa-device-pointer-access'

Alex Elder says:

====================
net: ipa: simplify device pointer access

This version of this patch series fixes the bugs in the first patch
(which were fixed in the second), where ipa_interrupt_config() had
two remaining spots that returned a pointer rather than an integer.

Outside of initialization, all uses of the platform device pointer
stored in the IPA structure determine the address of device
structure embedded within the platform device structure.

By changing some of the initialization functions to take a platform
device as argument we can simplify getting at the device structure
address by storing it (instead of the platform device pointer) in
the IPA structure.

The first two patches split the interrupt initialization code into
two parts--one done earlier than before.  The next four patches
update some initialization functions to take a platform device
pointer as argument.  And the last patch replaces the platform
device pointer with a device pointer, and converts all remaining
references to the &ipa->pdev->dev to use ipa->dev.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>