From mboxrd@z Thu Jan 1 00:00:00 1970 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 8629BC4332F for ; Thu, 29 Dec 2022 02:46:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232915AbiL2CqP (ORCPT ); Wed, 28 Dec 2022 21:46:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiL2CqL (ORCPT ); Wed, 28 Dec 2022 21:46:11 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED87EC760 for ; Wed, 28 Dec 2022 18:46:10 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id s7so17705003plk.5 for ; Wed, 28 Dec 2022 18:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mmvRXkVVtaqaYs2yoaTeEYQ9ctHUESJNG5qerNoqkcI=; b=Ix5ubWHKT4dV/qTkpacuNERdaV/pX2Lv0NSwf2hKn2h50Uafq1sCp8pa7hTFkb0rDY MPN8DXuZlTc5LCMp72LnzbnXg++UeykvHnCrDI1pyW/oAhGr6pyoeuZuzJ10o/XDQtF/ LEFK/9LadKv341M6apxIw7uRxGePY5e4mT/Hg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mmvRXkVVtaqaYs2yoaTeEYQ9ctHUESJNG5qerNoqkcI=; b=BqT4FvcBF6NRBxa5hrqG9MvaQ/fSfraLZt8s+zoKOSF5XWVJm7aS6Kw24w5iKnttRu BRhmjaGTwaPyzNCOVC7yhC1jiM9uFtjK7hnU1dZKV6MDJdTcxcUSQMtU0DrZtxPjdczp vyQtUkpoBevoffHN6tRD2TX1RguzyTRsmPprL6ty3tQtk8cS/PM1ISum+1uLTYMk1Wnf 2W9elBzIS3Zf5EaMGOG8eBfLIF57aCkA5j7tiMo0M+iFQhg5J3XLWwfkL+Hep47HPFgG IojrLxd0iRDtejQzs2aVqFdktqte2xOHVnUSptdp+QqMjuDzpAInlRN+ge12yZn9qTii Fy0g== X-Gm-Message-State: AFqh2koHVKP86v4lPmdOHwdwolZHrM+z8ZLX/sNoTo35wTnda4oNPMhi jT6Wj94lqLsAwJ26fwVImArY4A== X-Google-Smtp-Source: AMrXdXtnWdSyX0JgddpSXsDrcnaiUKWgj7lNBDws8U+1KJnJnXqzlQypQYWru2VMcWZWMAQxWFLCXg== X-Received: by 2002:a17:90a:7443:b0:226:1cd3:163a with SMTP id o3-20020a17090a744300b002261cd3163amr4181143pjk.10.1672281970480; Wed, 28 Dec 2022 18:46:10 -0800 (PST) Received: from google.com (KD124209188001.ppp-bb.dion.ne.jp. [124.209.188.1]) by smtp.gmail.com with ESMTPSA id z15-20020a17090a66cf00b00223ed94759csm12806439pjl.39.2022.12.28.18.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 18:46:09 -0800 (PST) Date: Thu, 29 Dec 2022 11:46:05 +0900 From: Sergey Senozhatsky To: Ricardo Ribalda Cc: Yunke Cao , Max Staudt , Mauro Carvalho Chehab , Laurent Pinchart , linux-media@vger.kernel.org, Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] media: uvcvideo: Remove void casting for the status endpoint Message-ID: References: <20221214-uvc-status-alloc-v4-0-f8e3e2994ebd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214-uvc-status-alloc-v4-0-f8e3e2994ebd@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/12/20 23:56), Ricardo Ribalda wrote: > Make the code more resiliant, by replacing the castings with proper > structure definitions and using offsetof() instead of open coding the > location of the data. > > Suggested-by: Sergey Senozhatsky > Signed-off-by: Ricardo Ribalda Reviewed-by: Sergey Senozhatsky