From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 10 Jun 2022 11:45:30 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nzbCs-009ruL-1z for lore@lore.pengutronix.de; Fri, 10 Jun 2022 11:45:30 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzbCq-0005Cg-GI for lore@pengutronix.de; Fri, 10 Jun 2022 11:45:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:From:In-Reply-To:MIME-Version: References:Message-ID:Subject:Cc:To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=nbwPZvV78DZTnyCa836oMzuT+WTliLR1eeqb9LY8GrI=; b=r7YjpJ/EX9/8A1YQmjazHPHLlO TJB6gw5qqar34dDwPUUzvHlnG+Tzz2zgXmFSB3LVBDqCECBeqejeg2MonpRKtSRDA0jCwozRpRD61 LNIwggXK2F2W8yXnHe92/JCLcbxTwhyw5oLgX/UuwHft2syBjK7kK8D5QDRiXmumykmiQMMuBdJAn 218+y/q6kfj7fwRAevsCDYzLtv5aE43QyQg2qAHwanIq7cIkZOrechg333KgRLQnjNFfL+vjJ6PJw EKQVsoW+alrH4IkFa0AY0LSE19H/XL3o40pOPWFyFkBEPXwElxEzY8Lu9ttBOH4kB/gYufGf3/heP YCz+Y6og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzbB7-007HPz-Vc; Fri, 10 Jun 2022 09:43:42 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzb2x-007DLP-2b for barebox@lists.infradead.org; Fri, 10 Jun 2022 09:35:16 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzb2v-0003NK-GC; Fri, 10 Jun 2022 11:35:13 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nzb2v-0004pN-5b; Fri, 10 Jun 2022 11:35:13 +0200 Date: Fri, 10 Jun 2022 11:35:13 +0200 To: Alexander Shiyan Cc: barebox@lists.infradead.org Message-ID: <20220610093513.GL1615@pengutronix.de> References: <20220610085633.21606-1-eagle.alexander923@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220610085633.21606-1-eagle.alexander923@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_023515_159383_A517EE29 X-CRM114-Status: GOOD ( 14.30 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [RFC 1/2] clocksource: Introduce a context storage for the clocksource structure X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) On Fri, Jun 10, 2022 at 11:56:31AM +0300, Alexander Shiyan wrote: > This patch adds a context entry for the clocksource structure. > This field can be used to store any private driver data, and to > distinguish between multiple driver instances for debugging purposes. You could embed struct clocksource in a private struct and use container_of() to get that from the struct clocksource *. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox