[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e07d507e-57bf-a2b7-2ab1-f5f45ff5399b@linux.intel.com>
Date: Thu, 8 Jun 2023 08:24:00 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Vinod Koul <vkoul@...nel.org>,
Bard Liao <yung-chuan.liao@...ux.intel.com>
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
bard.liao@...el.com
Subject: Re: [PATCH 3/4] soundwire: extend parameters of
new_peripheral_assigned() callback
>> -static void generic_new_peripheral_assigned(struct sdw_bus *bus, int dev_num)
>> +static void generic_new_peripheral_assigned(struct sdw_bus *bus,
>> + struct sdw_slave *slave,
>> + int dev_num)
>> {
>> struct sdw_cdns *cdns = bus_to_cdns(bus);
>> struct sdw_intel *sdw = cdns_to_intel(cdns);
>> diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h
>> index 8a7541ac735e..41a856bedf1e 100644
>> --- a/include/linux/soundwire/sdw.h
>> +++ b/include/linux/soundwire/sdw.h
>> @@ -861,7 +861,9 @@ struct sdw_master_ops {
>> int (*pre_bank_switch)(struct sdw_bus *bus);
>> int (*post_bank_switch)(struct sdw_bus *bus);
>> u32 (*read_ping_status)(struct sdw_bus *bus);
>> - void (*new_peripheral_assigned)(struct sdw_bus *bus, int dev_num);
>> + void (*new_peripheral_assigned)(struct sdw_bus *bus,
>> + struct sdw_slave *slave,
>
> maybe better, drop the bus and pass slave (which contains bus)
I kept it for consistency, all callbacks for sdw_master_ops start with
the bus parameter.
Powered by blists - more mailing lists