From patchwork Wed Jun 21 16:31:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 695214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3F18EB64D8 for ; Wed, 21 Jun 2023 16:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbjFUQct (ORCPT ); Wed, 21 Jun 2023 12:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbjFUQcm (ORCPT ); Wed, 21 Jun 2023 12:32:42 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD921FDE; Wed, 21 Jun 2023 09:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687365136; x=1718901136; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qEW30dA8vNljkBwgQRkbrY35GTPiA1yzYfQCe6lh49w=; b=BSkgChcp5DOYTBMx4kjiRp3F0X9FoUR3OaqCsA5kUjpgOY9f57Hc/4kG zgXQ7n1TwC57aHE0Byy5emocaS0qCOyRVq9cxJSCb0TJBd/8i8v6A7rZ0 JzkbU+pAU18xH7IyI16KwxRCvjLlE05LrjVmRNWlfEE2akHiAApviaERG PSg60C7xpnG5RuLGou9N6RgaEy/OyJ6PeoJFRrYc9om1vgauL+851wmj9 p6OP2nwqDZyKkNrkizw3JrRXGqmBw162L9/CTY+nr0eNTM1bUUDnX8dUn 9rn2+tak+awNZxBX8aNYERdiw3FFQcFqSIaGVh7DnQbA/8hkWQz5Ry3z1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="360241879" X-IronPort-AV: E=Sophos;i="6.00,261,1681196400"; d="scan'208";a="360241879" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2023 09:31:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="744232664" X-IronPort-AV: E=Sophos;i="6.00,261,1681196400"; d="scan'208";a="744232664" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 21 Jun 2023 09:31:14 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 853711FD; Wed, 21 Jun 2023 19:31:24 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Heikki Krogerus Subject: [PATCH v1 1/1] usb: ulpi: Make container_of() no-op in to_ulpi_dev() Date: Wed, 21 Jun 2023 19:31:22 +0300 Message-Id: <20230621163122.5693-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Move embedded struct device member to make container_of() noop Signed-off-by: Andy Shevchenko --- include/linux/ulpi/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ulpi/driver.h b/include/linux/ulpi/driver.h index c7a1810373e3..a8cb617a3028 100644 --- a/include/linux/ulpi/driver.h +++ b/include/linux/ulpi/driver.h @@ -15,9 +15,9 @@ struct ulpi_ops; * @dev: device interface */ struct ulpi { + struct device dev; struct ulpi_device_id id; const struct ulpi_ops *ops; - struct device dev; }; #define to_ulpi_dev(d) container_of(d, struct ulpi, dev)