From patchwork Fri Feb 8 08:15:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1038517 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="xMvx+STv"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43wp4q20KVz9sN8 for ; Fri, 8 Feb 2019 19:19:38 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B5314C2200A; Fri, 8 Feb 2019 08:18:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B443CC22037; Fri, 8 Feb 2019 08:15:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AC878C2200D; Fri, 8 Feb 2019 08:15:20 +0000 (UTC) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by lists.denx.de (Postfix) with ESMTPS id B6F98C2200A for ; Fri, 8 Feb 2019 08:15:13 +0000 (UTC) Received: by mail-yb1-f181.google.com with SMTP id b7so135470yba.2 for ; Fri, 08 Feb 2019 00:15:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zz9pkJNOJsJrJyRcSiPb+Pll+UEW3+Fn2opm0msoPxI=; b=xMvx+STvVETlDEM4yjoQfF/4fqCJ/j7tpsbeJToNXXf8gNOajRK+bj4LnHD7L9wyW/ Qa8g1t/jDIyrKjYRSRSvDK4LvZKINjekQYwUkoQmpqvmcjIm0brdddvl9pacbr1Egiec 8jDNlS3jAIZlx3/46ojc1XCUr1IAVfFx3xBhUyHpwwM1BQdNiK0IBAeCylMJeEZZxBmT XSErOkaQJRM0j/2wlejiHRGg5QkMIZoJx5+dk3P08bD4yIAZv9dzcF/hsT8Dztc6w+9b dHsJAOuZJqeECsUh6GE+PblaytLY71mBEKTAtQKz6cXZwv69Q//mcL2J1+Gc5roXAJM8 ZXWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zz9pkJNOJsJrJyRcSiPb+Pll+UEW3+Fn2opm0msoPxI=; b=efl5u7GGyzOCTuDoV8NJHuvhes4mew3gHHfuZgB12xnXnXu00RtA5r7TlT2cdr7b9V uEhZWiOIMiHLwVYgFnoeyJXAABpicMzOZqN9oqMugJn6SQ2jn54JcWLPfxG3DHzIcVmg qo0pIgJDdu5PSkJ2JN/DMNDb7DeBbmr9XEyQXm7CzyMFRthyKnnPg43r73dxy+hXJeTJ knvL+LUFQrpjkC3odkOQPL2BRmYM2SJS1P+fE+Jw8QE35UqHFGBDNrdpPkqzqQVDoaEX OYsVxX2HB6rhh5lQwdHXNYCa4AzfG/hxTxOi2OBfQMNHcFq+g6zuKqNsCtw451q//uuf b3Og== X-Gm-Message-State: AHQUAuYkRKYAMzW/fBZpUcEWxsjCe0BtiT86shxDFfDSjR+FOtuYs8CS 2p7B9JHUVskCdqxXthRwaXet8w== X-Google-Smtp-Source: AHgI3IYUrB8JTGOE++4RlsNFSgBQJ0wIbHnqwJ/H0lj3dgWBIDOi7Zjvlnxkz64Dg9/SxyaaISM9OA== X-Received: by 2002:a25:38a:: with SMTP id 132mr17142679ybd.426.1549613712729; Fri, 08 Feb 2019 00:15:12 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id j6sm561234ywi.110.2019.02.08.00.15.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 00:15:12 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de, sjg@chromium.org Date: Fri, 8 Feb 2019 17:15:34 +0900 Message-Id: <20190208081542.2813-8-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190208081542.2813-1-takahiro.akashi@linaro.org> References: <20190208081542.2813-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [RFC v2 07/15] efi_loader: unicode_collation: converted to DM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_unicode_collation.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/efi_loader/efi_unicode_collation.c b/lib/efi_loader/efi_unicode_collation.c index 7f3ea3c77e4e..9b47693d3ee5 100644 --- a/lib/efi_loader/efi_unicode_collation.c +++ b/lib/efi_loader/efi_unicode_collation.c @@ -9,6 +9,7 @@ #include #include #include +#include #include /* Characters that may not be used in file names */ @@ -327,3 +328,21 @@ const struct efi_unicode_collation_protocol efi_unicode_collation_protocol = { .str_to_fat = efi_str_to_fat, .supported_languages = "en", }; + +static int efi_unicode_collation_probe(struct udevice *dev) +{ + struct efi_handler *handler; + struct efi_unicode_collation_protocol *col; + + handler = dev->uclass_platdata; + col = handler->protocol_interface; + device_set_name(dev, col->supported_languages); + + return 0; +} + +U_BOOT_DRIVER(efi_unicode_collation) = { + .name = "efi_unicode_collation", + .id = UCLASS_EFI_PROTOCOL, + .probe = efi_unicode_collation_probe, +};