]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
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)
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>

Trivial merge