Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/fs/btrfs/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 12 kB image not shown  

Quelle  clk-uniphier-fixed-rate.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2016 Socionext Inc.
 *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
 */


#include <linux/clk-provider.h>
#include <linux/device.h>

#include "clk-uniphier.h"

struct clk_hw *uniphier_clk_register_fixed_rate(struct device *dev,
      const char *name,
    const struct uniphier_clk_fixed_rate_data *data)
{
 struct clk_fixed_rate *fixed;
 struct clk_init_data init;
 int ret;

 /* allocate fixed-rate clock */
 fixed = devm_kzalloc(dev, sizeof(*fixed), GFP_KERNEL);
 if (!fixed)
  return ERR_PTR(-ENOMEM);

 init.name = name;
 init.ops = &clk_fixed_rate_ops;
 init.flags = 0;
 init.parent_names = NULL;
 init.num_parents = 0;

 fixed->fixed_rate = data->fixed_rate;
 fixed->hw.init = &init;

 ret = devm_clk_hw_register(dev, &fixed->hw);
 if (ret)
  return ERR_PTR(ret);

 return &fixed->hw;
}

Messung V0.5
C=96 H=95 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.