1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2007 Intel Corporation
5 * Authers: Jesse Barnes <jesse.barnes@intel.com>
10 #include "psb_intel_drv.h"
16 bool psb_intel_ddc_probe(struct i2c_adapter
*adapter
)
18 u8 out_buf
[] = { 0x0, 0x0 };
21 struct i2c_msg msgs
[] = {
36 ret
= i2c_transfer(adapter
, msgs
, 2);
44 * psb_intel_ddc_get_modes - get modelist from monitor
45 * @connector: DRM connector device to use
47 * Fetch the EDID information from @connector using the DDC bus.
49 int psb_intel_ddc_get_modes(struct drm_connector
*connector
,
50 struct i2c_adapter
*adapter
)
55 edid
= drm_get_edid(connector
, adapter
);
57 drm_connector_update_edid_property(connector
, edid
);
58 ret
= drm_add_edid_modes(connector
, edid
);