]> Git Repo - u-boot.git/blame - drivers/ram/ram-uclass.c
dtoc: Tidy up more Python style in dtb_platdata
[u-boot.git] / drivers / ram / ram-uclass.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
6c51df68
SG
2/*
3 * Copyright (C) 2015 Google, Inc
4 * Written by Simon Glass <[email protected]>
6c51df68
SG
5 */
6
7#include <common.h>
8#include <ram.h>
9#include <dm.h>
10#include <errno.h>
11#include <dm/lists.h>
12#include <dm/root.h>
13
14int ram_get_info(struct udevice *dev, struct ram_info *info)
15{
16 struct ram_ops *ops = ram_get_ops(dev);
17
18 if (!ops->get_info)
19 return -ENOSYS;
20
21 return ops->get_info(dev, info);
22}
23
24UCLASS_DRIVER(ram) = {
25 .id = UCLASS_RAM,
26 .name = "ram",
27};
This page took 0.195205 seconds and 4 git commands to generate.