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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56F89C433E7 for ; Tue, 20 Oct 2020 11:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E64952222C for ; Tue, 20 Oct 2020 11:04:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392415AbgJTLEH (ORCPT ); Tue, 20 Oct 2020 07:04:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:43759 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390873AbgJTLEH (ORCPT ); Tue, 20 Oct 2020 07:04:07 -0400 IronPort-SDR: Urzu8pHsxcV2FNUswikJbyvRPU/JJi6szTCLpmdGCXITrWwMSh64UvABEVJfO9vvX8BAxLiuip Nk6fJ6Pz5SiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9779"; a="164579545" X-IronPort-AV: E=Sophos;i="5.77,396,1596524400"; d="scan'208";a="164579545" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 04:04:07 -0700 IronPort-SDR: GDtBhTA5JlSSZUJsNuhDEfTQVrZDCbxdJeNXlBwAi0/WVG157wDZhj+1anFZGbPyvr2IDGMMlY pPwHlRZHhnkQ== X-IronPort-AV: E=Sophos;i="5.77,396,1596524400"; d="scan'208";a="320611899" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 04:04:01 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kUpRw-00BNQ6-Gk; Tue, 20 Oct 2020 14:05:04 +0300 Date: Tue, 20 Oct 2020 14:05:04 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , Bartosz Golaszewski , linux-gpio , Geert Uytterhoeven Subject: Re: [libgpiod] Rethinking struct gpiod_line_bulk Message-ID: <20201020110504.GJ4077@smile.fi.intel.com> References: <20201013005252.GA9387@sol> <20201013085310.GB3119809@sol> <20201019162142.GA85778@sol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Oct 20, 2020 at 12:47:02PM +0200, Bartosz Golaszewski wrote: > On Mon, Oct 19, 2020 at 6:21 PM Kent Gibson wrote: ... > I'm now actually leaning more towards making it opaque but I need to > find a way to make gpiod_line_bulk_foreach_line work with hidden bulk > struct. +1 for opaque if technically possible. For the issue you describe, perhaps callbacks somewhere? (Although it might look not so nice) -- With Best Regards, Andy Shevchenko