From patchwork Fri Sep 18 14:41:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 11785199 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 76AEC92C for ; Fri, 18 Sep 2020 14:41:35 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 70A1521D42; Fri, 18 Sep 2020 14:41:35 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C383521734 for ; Fri, 18 Sep 2020 14:41:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KObaMNjF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C383521734 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=jens.wiklander@linaro.org Received: by mail-lj1-f196.google.com with SMTP id a22so5262358ljp.13 for ; Fri, 18 Sep 2020 07:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=N2cRR1bqs+5tj1of0U4CpX6EeJBhHim3bgiMhmU8VOo=; b=KObaMNjFxWPqr7Yolymu/lxSRIV3+LdKNPu5BVTKaKfS3JC/SvZK97LM5SFXPuloxR dIYlXIyuM+cU4LRoy9FdsB6dGbA8BPWUAqZsJRmXNbYzL8arCQgN7U9mAFRq6DtS8DsY DsVvP0Yz7lKzDni31/zz0akHosXS56jJ39JsQTFRmz+DFSt347VuiiVGlPMMw3ONChGB cw6RW7+ECDAcmwEjlepcBajumhOhX37zEtjRPqMD+owhuMNnE+HP4HceQ0PAMhqh7YkX 0mN75Slaj6aPWOlHt0Lmxwwwrr0rCX2ia65LaFKX0oL9P0UeWL0eFhQrEhysgG/rEOAV 9E2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=N2cRR1bqs+5tj1of0U4CpX6EeJBhHim3bgiMhmU8VOo=; b=plqwM13qSMO236dtXfMIDALl7QE1DQ5liZ6CK2cPgdnklJ2aQKzuVoUmMLSG6AEi7P SyPTErptb65gbHeGC0mZs7p17hYtcA5SC0n+Osbt6WN9VxfTq162N3ii7yWhe+jG3o+x rRRucimi3dYIvL5VO62DcCk3oy2THQ+NqY2Wt3ckpu1HM4dDBJJUGAWB8JZU1mamFr8o jM97xFaDU0vabM8PUnx0MMnu468TwVOB4aA9+FQ+CyWYA5oiuzN80VHkR4w9WiviS9G6 DEXZGQOlOiD6B1Lg1ido1cHjojynUJiuM73lKHa39yMazPuo9r6IVk4thmsyNNlq8uRY hK4Q== X-Gm-Message-State: AOAM533WGv3vtLEEQ0Mn7VyCRN452fgXf1f3qDX4wI7eJnb37GiX5MXL cCOJImigDe87oKlORzePw7YPbQ== X-Google-Smtp-Source: ABdhPJz8InSl5HtAfRczk5FmvB0um+7TuFkwaNvrgPKaDbWpm3HfUfDODOZNA744WeQ6w/XBO13HHw== X-Received: by 2002:a2e:9b15:: with SMTP id u21mr8180298lji.283.1600440092720; Fri, 18 Sep 2020 07:41:32 -0700 (PDT) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id m20sm633031ljp.132.2020.09.18.07.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 07:41:32 -0700 (PDT) Date: Fri, 18 Sep 2020 16:41:30 +0200 From: Jens Wiklander List-Id: To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM , op-tee@lists.trustedfirmware.org, Sudeep Holla Subject: [GIT PULL] tee dev cleanup for v5.10 Message-ID: <20200918144130.GB1219771@jade> MIME-Version: 1.0 Content-Disposition: inline Hello arm-soc maintainers, Please pull this small cleanup in tee driver registration. There are no changes in behaviour, just a reduction in number of lines due to improved usage of the device driver framework. Thanks, Jens The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-dev-cleanup-for-v5.10 for you to fetch changes up to 8c05f50fe8452f9d3220efad77bef42c7b498193: tee: avoid explicit sysfs_create/delete_group by initialising dev->groups (2020-09-18 10:44:45 +0200) ---------------------------------------------------------------- Simplify tee_device_register() and friends Uses cdev_device_add() instead of the cdev_add() device_add() combination. Initializes dev->groups instead of direct calls to sysfs_create_group() and friends. ---------------------------------------------------------------- Sudeep Holla (2): tee: replace cdev_add + device_add with cdev_device_add tee: avoid explicit sysfs_create/delete_group by initialising dev->groups drivers/tee/tee_core.c | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-)