Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp524576rdb; Fri, 17 Nov 2023 05:52:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpzOgGpA8r6obnQftIhWHpOwwQDcUhl/LbzSAhYkBwxraeAR8ZYVM8a578Tglxle3i+4wE X-Received: by 2002:a05:6830:441f:b0:6bc:cd0d:427e with SMTP id q31-20020a056830441f00b006bccd0d427emr13402935otv.38.1700229130937; Fri, 17 Nov 2023 05:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700229130; cv=none; d=google.com; s=arc-20160816; b=gAZAXj6BqDqeIxyOAndo7rA8KboMBhQpxjraLiUVLSQKETyYGe7ieLWm4c1jkAP3YT m71aVnHigkgJ7Ykp4pZFRWX/oJYJTUMmUWgsBbMkfKvhtNtHlahqXQMk52DVSYcfeoEq y5KPoFsQcSS2aoReeLTNJc6LQ86W3w3rSIio8ydKvAoWUUpOSn8Sj9uGjwVMtbd/wYmj nUG3ffqY07sfktMNsBVYdm5VVeWNq5qrGZ265CXi1XX1f2He24lvu/KFKXc6sO8tE61q 6i4k99NQ6dJuUU6TZoQnShBXEP3eFKrL7osY3L5Dl7zQFu5EweZOu+U1VvE6kfd4Hzyf 02YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0BAXkw1zvttyxpwvuj6q7hA1m7861EKnLSNs6koNiwU=; fh=FtrQAO9rss+oU71flgedgiYuJfnhoOAYtRvhHOEZdrM=; b=PbybixulHx+9bExyYntxjZ8/WchF/LGJFshjFIQvYRfRXl2O+o3oNPXcAtcJQXniuS gav/frmJFmbypm8o2BhnXvVpvcp+Tcag9eDE+MlJmCW3lb9qsSTFD8smHc8QQemZ24em VB5zK0NdqMBKaWch6pDGEWe+aq4NSaDcDvTTED4SYJVlzChEsvJ5k/T+riP3nMbxRIDk /k/3Li4UByEIY+9C1tRdbyvMXYJA57vhTpz5iUdJ/bcwa2i81S7QeiZeWl3mmtCpq75z sh2bctOxRZGKBVW7dzzFU0pGhxjTkjVJ17h+6np/cgQdEgiOfq1eg/IpuOTu1LvIcLQ3 wkFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJmGm0xW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cl22-20020a056a02099600b005c1ce3c9609si2079864pgb.889.2023.11.17.05.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJmGm0xW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BF0258040EAF; Fri, 17 Nov 2023 05:52:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231735AbjKQNwE (ORCPT + 99 others); Fri, 17 Nov 2023 08:52:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231699AbjKQNwC (ORCPT ); Fri, 17 Nov 2023 08:52:02 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05AAFD52; Fri, 17 Nov 2023 05:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700229120; x=1731765120; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=uRPZW1EhDMvmdSa0U9aNmDPgsgvZ+Itub0PWfB9Y9/Y=; b=EJmGm0xWom1pkHseEXUdAge5VBjjHnJbiQnHfwjg4U3nGw/53uAQ3z+B K6I/Oe0rLCF5+ClPl9zwvIw9NaDopEilK1ZDtYKMoVp4KuG4edxidj91g CLH6M9Ll7molC886YUwNIX3FzPVtgcqYhOcE7JB5Z0uRgZPRAMPHpAzCx 0tHuwJNKAyYTYWg14Misas/OhfkUzumOgs4qB9ae21Ka4HvfHem6Gmwn6 3+A5nkw939NnDwwWzZ5WBO04M1KlYr9obV+7NjVwmIG4DnwFC9ermhN86 1CRslcK4DkIwsP3i9wOmebvqCClcOS3tFGDDcpuCvgWW11FxlB0StWJIm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="12849787" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="12849787" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 05:52:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="769226529" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="769226529" Received: from unknown (HELO [10.237.72.75]) ([10.237.72.75]) by fmsmga007.fm.intel.com with ESMTP; 17 Nov 2023 05:51:55 -0800 Message-ID: <3f30ed45-d63c-47c0-a533-43a2d2cfc31a@linux.intel.com> Date: Fri, 17 Nov 2023 15:51:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 07/25] i2c: designware: Save pointer to semaphore callbacks instead of index Content-Language: en-US To: Andy Shevchenko , Mario Limonciello , Herbert Xu , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , Hans de Goede References: <20231110182304.3894319-1-andriy.shevchenko@linux.intel.com> <20231110182304.3894319-8-andriy.shevchenko@linux.intel.com> From: Jarkko Nikula In-Reply-To: <20231110182304.3894319-8-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 05:52:09 -0800 (PST) On 11/10/23 20:11, Andy Shevchenko wrote: > Instead of saving index and do an additional level of referencing, > save just a pointer to the semaphore callbacks directly. It makes > code cleaner. > > Signed-off-by: Andy Shevchenko > --- > drivers/i2c/busses/i2c-designware-core.h | 4 +++- > drivers/i2c/busses/i2c-designware-platdrv.c | 12 ++++-------- > 2 files changed, 7 insertions(+), 9 deletions(-) > Acked-by: Jarkko Nikula