Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1325940imi; Sat, 23 Jul 2022 02:20:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbKt/VVcGkHPshec1yi/zTuk6xonE0VVDnA4VWD92xEVES6nF7UELi/R9QnUT54A7a/vCQ X-Received: by 2002:a05:6402:d53:b0:43b:a0cf:d970 with SMTP id ec19-20020a0564020d5300b0043ba0cfd970mr3430970edb.277.1658568037696; Sat, 23 Jul 2022 02:20:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658568037; cv=pass; d=google.com; s=arc-20160816; b=I7i4yTW54oAVnMpgFeUJ4z9R+ZbbW9Bx6no7xHbylhkPbRhGw916+nftRN3kqnk/ed clr7ISpLk+/lPebzT4Z3qGb/de7FWuJJM5ZLJGvrupwDsKJGSBk7So1q22LY+IbBJfDp tVFKxpEReXA0cMWJmkOm4HNt/nn2Ikt2mJr0g4tRHMXhDxkv07Ry6g0U6lk+6Oi1ThO2 RxRdjg91qvCzvUqUD6FlPE2S+Cz8BCpv0BKMkZ01nKcUenNuBWJ6XMy0y3xHHxkMFGVG wGpMLDWSxCjJmZ9MgCWRlp5svLmqXUxUOoachmmKMUsfOOsC4XUFRB3iWUz2l9KZfLQQ vG8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N2qEYdxHYoqM2Wy3hrA5pd7ObUPMS76FKSQJ593cqE0=; b=ttdn8Oufj26h94kIClSWG9ov8v/fpf+iW5T6CRp7cFViWtgC+VCoe5p18r/m3N8VZk NKjL9bGolLtnAJ9FOyAItHy3d4ILwXXgzxrsYG8p770JIFaAjA7aL7JRcUP/1u7kinRQ xUuHsviLbAdfAJQCupURBLQdokL6Bg36nWuARdhRB9+cG4X+VWd9mFCDDTum1oQbMdu+ 1newHg6H3OdzV9B1WCocO1JBbWovRQmKuRfxA6efIABjHhqvE95dlskDq6WDG3VjgGkP rH06V8+ANkpPGQexcUcvn3V0j7HfgSRvwk2tI/1LRuMVB7G1XYYXVCbLy614w78oC0ya qb6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=eqxUETZs; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a50fd8f000000b0043bcd0ecd74si4589369edt.202.2022.07.23.02.20.11; Sat, 23 Jul 2022 02:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=eqxUETZs; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237125AbiGWJRw (ORCPT + 99 others); Sat, 23 Jul 2022 05:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbiGWJRv (ORCPT ); Sat, 23 Jul 2022 05:17:51 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F4582229A; Sat, 23 Jul 2022 02:17:50 -0700 (PDT) Received: from hillosipuli.retiisi.eu (dkwl20tj04snw15cjtflt-3.rev.dnainternet.fi [IPv6:2001:14ba:4493:6f40:fec3:d72a:e447:8113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id DD2801B00027; Sat, 23 Jul 2022 12:17:45 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1658567866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N2qEYdxHYoqM2Wy3hrA5pd7ObUPMS76FKSQJ593cqE0=; b=eqxUETZsOWgzVFZeJ/P5TwPGKf9wIaHDdTvyEjpBKltDqGq+2+Q5HhvkihMssGyLn1gC1M 0jbxsepf+on0ld8AX88IeLrqSo9NsoqEHdfZTWOuxMQLuvrIJV721xpBptPHalvEXuPX42 yhf+7eLIwT6tko8Pjs4g45XNO07TzhHdkRiqWQaTARcjGQQfdMhAxl2daYr3sIzJIpV8NZ Vbi0apSGOJBRw0AJkeAb659hQx5eZBFFUvb5srXLEaq0PmMWJ1idYIdSpf3VIYUvjOhgIf tisSdhwvfW5DnpBbwGttfhb14Xpc2lGDP5Oi2KMO+NROLlw6JjvinDJiSQDMKg== Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 7A523634C95; Sat, 23 Jul 2022 12:17:45 +0300 (EEST) Date: Sat, 23 Jul 2022 12:17:45 +0300 From: Sakari Ailus To: Lin Ma Cc: dongchun.zhu@mediatek.com, zhengsq@rock-chips.com, mchehab@kernel.org, matthias.bgg@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v0] media: i2c: fix the erroneous pointer initializer Message-ID: References: <20220722022459.5030-1-linma@zju.edu.cn> <693a3b3e.519a0.18223e0575b.Coremail.linma@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <693a3b3e.519a0.18223e0575b.Coremail.linma@zju.edu.cn> ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1658567866; a=rsa-sha256; cv=none; b=Blnu2BnHkt9iPdrAtsbjIWXaquxiAFbzIE5ZKij7DhhLnMvsUlvrpE1c26QQC8wLDQHnRY HjtpA8X9YjsLyxsWrJt3mtbuT5++cEYUEyMspWx8D4DcVs+Ys15MoNoI3Gwjc4ZE3GAXex 2PQBjl8GHylwribcmE3GCDz53OC9Py1PgaYhj/y/hUrFz/k1SQOfaJVghwgS6iZZjHMGuz Og0Hh3ck16MCNjEeytHrSG4mLhze5q1cnf7GY6B6j5UdCuUMpNFiLmVG9ZNPNLX5DhfLXI EwiAWnqJt73dcCX6iRKXZs1ocbvCTH0xJ7PlGh1F5X5aEKYYa8fBV4eynZyX5A== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1658567866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N2qEYdxHYoqM2Wy3hrA5pd7ObUPMS76FKSQJ593cqE0=; b=WvTQz2hJgsW1fNEi8YkWal12ypXIxs3xknBZ1PXIXJdKJgymPXQVi5DOUG4Ws00Mbc3Uq7 ZGNywyOJEsbLGBnJPJG3QedT7uuTYl43KY72fh8lxKio/dCDfqNFdCaEWo47lrXdBfKyGW 8pi1VmJXPe14jW4Ugv3LQ5KM1kH8ZEF14AOjnVdK2aFXjHnXv8ODf47E0c7BkDFX1yiIVU RDLAlwFasWqJs2Y8j769x6HYszvi2Ez91XEkfUNg2EdOnbhTJJCR9YBzCfVKlEvN1j9jEc L3yE+qdR8hMbOfsVPrvo+NqDxa8tcBAyquDXMlosMe6gu0bU4Wwp86IWnPvlLg== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Hi Lin, On Fri, Jul 22, 2022 at 11:08:01AM +0800, Lin Ma wrote: > Hello there, > > > > > > There are obvious errors for the initializer of ov02a10_i2c_driver, > > ov2682_i2c_driver, and ov5695_i2c_driver as the code intended to assign > > "address of function pointer" to function pointer. This patch fixes them > > by removing redundant & operators. > > > > Signed-off-by: Lin Ma > > Sorry as this is a false alarm :( > I just get confused by the function pointers and function addresses and > the original code works fine. Thanks for the patch. The original code works fine but functions are always by reference, the preference is without &. First patch version is typically 1 and there's no need to denote that. -- Regards, Sakari Ailus