Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3206619rdb; Wed, 13 Sep 2023 05:36:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn/DIF9SK0+JJf5TacokVIT55Bzr9O5dWkdJThedRZ9DWKf0QXNvJGx1Kw2GvYkyT1P0RK X-Received: by 2002:a05:6870:a2d1:b0:1d4:d016:22a3 with SMTP id w17-20020a056870a2d100b001d4d01622a3mr2511620oak.7.1694608606617; Wed, 13 Sep 2023 05:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694608606; cv=none; d=google.com; s=arc-20160816; b=a4/8SdDLdaR3KFV6lnK8RaGoRlFvoerCvq3SGy1RuQR4ai/gQgbJbvn2EqZXWE+EiO zsaelr0QdnEygL74Rs4cA64+ef0txsuw0ApPrzOzmVCWpBF7tSZyZfg/6Q9ID1v309X3 z1fPx0UsG9Z1YNF3bal8WlA9GEf81Ojto745VwccuznLnISi4dY2W9L6rziPz6GE5sSf 9fkoDVkyYaNf3++eSk2ptS+I/uuf5xW18hbNBfm6syVf0YPjn9mZgH6XnYBh1A3PZ16s 9XZC2sYYvhwIRBmZbBlmYyUwkp1byhZS2RtEnJM7BdT8H26wSE8T9ZTi71v39iX2DwyE TUpA== ARC-Message-Signature: i=1; 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; bh=2RhbzZzqwNfdbZJKTEIV+WPf4idCsK1S/X7dKb/Yv2w=; fh=gFh8wzz1EtzIJzWIhmT7Zxq7qH+PPH1MZmIY+vy1JdM=; b=CHNEkz86c08qiA3P9hm7rAaniQTrQ5RjmsWiWDzBPJBT/94GtUypJrGQBLJ3sSR4Tg 4AqOWrhXjCOqKUVNZ8MY1vnlW/PyOnt7NRbvkNcT0EzgTj8MlIz9DVcos011ItCJFQIv fIM4k+jNZEVpRcKrRwkKxXnY/p3tWROXK+1K5XdgZJqxIW2uyxHrbCx5/ObRDdDLOwnh OTgkG1ChiD4uXsumil4vx4vV1QBZqNyp6O+dh+XzpjAdpoTGrTcDP+yjNXoZHKvUfU/g waxUVNbenKUK5i2GC6ku26DWxhLly7ImJOicUYmzF3QU4AWv/msaH2if3rJifNtPSqlt bBTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a29-20020a63705d000000b00565f0e9cfbbsi10169789pgn.382.2023.09.13.05.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 05:36:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BED4180926A5; Wed, 13 Sep 2023 05:30:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240570AbjIMMau (ORCPT + 99 others); Wed, 13 Sep 2023 08:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240593AbjIMMap (ORCPT ); Wed, 13 Sep 2023 08:30:45 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E32E1BCA; Wed, 13 Sep 2023 05:30:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 166118088; Wed, 13 Sep 2023 12:30:41 +0000 (UTC) Date: Wed, 13 Sep 2023 15:30:39 +0300 From: Tony Lindgren To: Andy Shevchenko Cc: Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v2 3/3] serial: core: Add sysfs links for serial core port instances for ttys Message-ID: <20230913123039.GK5285@atomide.com> References: <20230912110350.14482-1-tony@atomide.com> <20230912110350.14482-4-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 05:30:50 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email * Andy Shevchenko [230912 15:17]: > On Tue, Sep 12, 2023 at 02:03:45PM +0300, Tony Lindgren wrote: > > + tty_dev = device_find_child(port->dev, &match, serial_match_port); > > Can be written as > > tty_dev = device_find_child(phys_dev, &match, serial_match_port); > > ? > > > + if (tty_dev) { > > + sysfs_remove_link(&port->port_dev->dev.kobj, "tty"); > > Can be written as > > sysfs_remove_link(&port_dev->dev.kobj, "tty"); > > can't be? Yes that's shorter. Thanks, Tony