From: "Nirujogi, Pratap" <pnirujog@amd.com>
To: Randy Dunlap <rdunlap@infradead.org>,
Pratap Nirujogi <pratap.nirujogi@amd.com>,
andi.shyti@kernel.org, hdegoede@redhat.com,
ilpo.jarvinen@linux.intel.com, mario.limonciello@amd.com,
sfr@canb.auug.org.au, linux-next@vger.kernel.org
Cc: linux-i2c@vger.kernel.org, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, benjamin.chan@amd.com,
bin.du@amd.com, gjorgji.rosikopulos@amd.com, king.li@amd.com,
dantony@amd.com
Subject: Re: [PATCH v2 3/3] platform/x86: Use i2c adapter name to fix build errors
Date: Tue, 3 Jun 2025 22:26:14 -0400 [thread overview]
Message-ID: <b707362f-728b-4a07-9ea0-6c18f69f851c@amd.com> (raw)
In-Reply-To: <9e21492a-96a3-4df1-9464-f572ced312df@infradead.org>
On 6/3/2025 6:49 PM, Randy Dunlap wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> On 6/3/25 2:40 PM, Pratap Nirujogi wrote:
>> Use adapater->name inplace of adapter->owner->name to fix
>> build issues when CONFIG_MODULES is not defined.
>>
>> Fixes: 90b85567e457 ("platform/x86: Add AMD ISP platform config for OV05C10")
>> Reported-by: Randy Dunlap <rdunlap@infradead.org>
>> Link: https://lore.kernel.org/all/04577a46-9add-420c-b181-29bad582026d@infradead.org
>> Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
>
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
> Thanks.
>
Thanks Randy!
>
>> ---
>> drivers/platform/x86/amd/amd_isp4.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/platform/x86/amd/amd_isp4.c b/drivers/platform/x86/amd/amd_isp4.c
>> index 0cc01441bcbb..9f291aeb35f1 100644
>> --- a/drivers/platform/x86/amd/amd_isp4.c
>> +++ b/drivers/platform/x86/amd/amd_isp4.c
>> @@ -11,6 +11,7 @@
>> #include <linux/mutex.h>
>> #include <linux/platform_device.h>
>> #include <linux/property.h>
>> +#include <linux/soc/amd/isp4_misc.h>
>> #include <linux/string.h>
>> #include <linux/types.h>
>> #include <linux/units.h>
>> @@ -151,7 +152,7 @@ MODULE_DEVICE_TABLE(acpi, amdisp_sensor_ids);
>>
>> static inline bool is_isp_i2c_adapter(struct i2c_adapter *adap)
>> {
>> - return !strcmp(adap->owner->name, "i2c_designware_amdisp");
>> + return !strcmp(adap->name, AMDISP_I2C_ADAP_NAME);
>> }
>>
>> static void instantiate_isp_i2c_client(struct amdisp_platform *isp4_platform,
>
> --
> ~Randy
prev parent reply other threads:[~2025-06-04 2:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 21:40 [PATCH v2 0/3] Fix build issue when CONFIG_MODULES is not set Pratap Nirujogi
2025-06-03 21:40 ` [PATCH v2 1/3] i2c: designware: Initialize adapter name only when " Pratap Nirujogi
2025-06-03 22:50 ` Randy Dunlap
2025-06-04 2:25 ` Nirujogi, Pratap
2025-06-03 21:40 ` [PATCH v2 2/3] i2c: amd-isp: Initialize unique adpater name Pratap Nirujogi
2025-06-03 22:48 ` Randy Dunlap
2025-06-04 2:25 ` Nirujogi, Pratap
2025-06-03 21:40 ` [PATCH v2 3/3] platform/x86: Use i2c adapter name to fix build errors Pratap Nirujogi
2025-06-03 22:49 ` Randy Dunlap
2025-06-04 2:26 ` Nirujogi, Pratap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b707362f-728b-4a07-9ea0-6c18f69f851c@amd.com \
--to=pnirujog@amd.com \
--cc=andi.shyti@kernel.org \
--cc=benjamin.chan@amd.com \
--cc=bin.du@amd.com \
--cc=dantony@amd.com \
--cc=gjorgji.rosikopulos@amd.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=king.li@amd.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=pratap.nirujogi@amd.com \
--cc=rdunlap@infradead.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox