linux/drivers/usb/typec/ucsi/psy.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Power Supply for UCSI
 *
 * Copyright (C) 2020, Intel Corporation
 * Author: K V, Abhilash <[email protected]>
 * Author: Heikki Krogerus <[email protected]>
 */

#include <linux/property.h>
#include <linux/usb/pd.h>

#include "ucsi.h"

/* Power Supply access to expose source power information */
enum ucsi_psy_online_states {};

static enum power_supply_property ucsi_psy_props[] =;

static int ucsi_psy_get_scope(struct ucsi_connector *con,
			      union power_supply_propval *val)
{}

static int ucsi_psy_get_online(struct ucsi_connector *con,
			       union power_supply_propval *val)
{}

static int ucsi_psy_get_voltage_min(struct ucsi_connector *con,
				    union power_supply_propval *val)
{}

static int ucsi_psy_get_voltage_max(struct ucsi_connector *con,
				    union power_supply_propval *val)
{}

static int ucsi_psy_get_voltage_now(struct ucsi_connector *con,
				    union power_supply_propval *val)
{}

static int ucsi_psy_get_current_max(struct ucsi_connector *con,
				    union power_supply_propval *val)
{}

static int ucsi_psy_get_current_now(struct ucsi_connector *con,
				    union power_supply_propval *val)
{}

static int ucsi_psy_get_usb_type(struct ucsi_connector *con,
				 union power_supply_propval *val)
{}

static int ucsi_psy_get_charge_type(struct ucsi_connector *con, union power_supply_propval *val)
{}

static int ucsi_psy_get_prop(struct power_supply *psy,
			     enum power_supply_property psp,
			     union power_supply_propval *val)
{}

static enum power_supply_usb_type ucsi_psy_usb_types[] =;

int ucsi_register_port_psy(struct ucsi_connector *con)
{}

void ucsi_unregister_port_psy(struct ucsi_connector *con)
{}

void ucsi_port_psy_changed(struct ucsi_connector *con)
{}